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

Method readJSONSyntaxChar

lib/py/src/protocol/TJSONProtocol.py:252–256  ·  view source on GitHub ↗
(self, character)

Source from the content-addressed store, hash-verified

250 self.trans.write(RBRACKET)
251
252 def readJSONSyntaxChar(self, character):
253 current = self.reader.read()
254 if character != current:
255 raise TProtocolException(TProtocolException.INVALID_DATA,
256 "Unexpected character: %s" % current)
257
258 def _isHighSurrogate(self, codeunit):
259 return codeunit >= 0xd800 and codeunit <= 0xdbff

Callers 7

readJSONStringMethod · 0.95
readJSONQuotesMethod · 0.95
readJSONDoubleMethod · 0.95
readJSONObjectStartMethod · 0.95
readJSONObjectEndMethod · 0.95
readJSONArrayStartMethod · 0.95
readJSONArrayEndMethod · 0.95

Calls 2

TProtocolExceptionClass · 0.70
readMethod · 0.65

Tested by

no test coverage detected