MCPcopy Create free account
hub / github.com/corpnewt/GenSMBIOS / end_integer

Function end_integer

Scripts/plist.py:119–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 if isinstance(p,plistlib._PlistParser):
118 # Monkey patch!
119 def end_integer():
120 d = p.get_data()
121 value = int(d,16) if d.lower().startswith("0x") else int(d)
122 if -1 << 63 <= value < 1 << 64:
123 p.add_object(value)
124 else:
125 raise OverflowError("Integer overflow at line {}".format(p.parser.CurrentLineNumber))
126 def end_data():
127 try:
128 p.add_object(plistlib._decode_base64(p.get_data()))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected