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

Method readJSONBase64

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

Source from the content-addressed store, hash-verified

374 "Bad data encounted in numeric data")
375
376 def readJSONBase64(self):
377 string = self.readJSONString(False)
378 size = len(string)
379 m = size % 4
380 # Force padding since b64encode method does not allow it
381 if m != 0:
382 for i in range(4 - m):
383 string += '='
384 return base64.b64decode(string)
385
386 def readJSONObjectStart(self):
387 self.context.read()

Callers

nothing calls this directly

Calls 1

readJSONStringMethod · 0.95

Tested by

no test coverage detected