MCPcopy Index your code
hub / github.com/RustPython/RustPython / load_binunicode8

Method load_binunicode8

Lib/pickle.py:1483–1488  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1481 dispatch[BINUNICODE[0]] = load_binunicode
1482
1483 def load_binunicode8(self):
1484 len, = unpack('<Q', self.read(8))
1485 if len > maxsize:
1486 raise UnpicklingError("BINUNICODE8 exceeds system's maximum size "
1487 "of %d bytes" % maxsize)
1488 self.append(str(self.read(len), 'utf-8', 'surrogatepass'))
1489 dispatch[BINUNICODE8[0]] = load_binunicode8
1490
1491 def load_binbytes8(self):

Callers

nothing calls this directly

Calls 5

unpackFunction · 0.90
UnpicklingErrorClass · 0.85
strFunction · 0.85
readMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected