MCPcopy Create free account
hub / github.com/apache/thrift / doIO

Method doIO

lib/py/src/protocol/TJSONProtocol.py:132–138  ·  view source on GitHub ↗
(self, function)

Source from the content-addressed store, hash-verified

130 self.colon = True
131
132 def doIO(self, function):
133 if self.first:
134 self.first = False
135 self.colon = True
136 else:
137 function(COLON if self.colon else COMMA)
138 self.colon = not self.colon
139
140 def write(self):
141 self.doIO(self.protocol.trans.write)

Callers 2

writeMethod · 0.95
readMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected