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

Method popContext

lib/py/src/protocol/TJSONProtocol.py:202–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 self.context = ctx
201
202 def popContext(self):
203 self.contextStack.pop()
204 if self.contextStack:
205 self.context = self.contextStack[-1]
206 else:
207 self.context = JSONBaseContext(self)
208
209 def writeJSONString(self, string):
210 self.context.write()

Callers 4

writeJSONObjectEndMethod · 0.95
writeJSONArrayEndMethod · 0.95
readJSONObjectEndMethod · 0.95
readJSONArrayEndMethod · 0.95

Calls 2

JSONBaseContextClass · 0.70
popMethod · 0.45

Tested by

no test coverage detected