MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / load_binunicode

Method load_binunicode

tools/python-3.11.9-amd64/Lib/pickle.py:1362–1367  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1360 dispatch[UNICODE[0]] = load_unicode
1361
1362 def load_binunicode(self):
1363 len, = unpack('<I', self.read(4))
1364 if len > maxsize:
1365 raise UnpicklingError("BINUNICODE exceeds system's maximum size "
1366 "of %d bytes" % maxsize)
1367 self.append(str(self.read(len), 'utf-8', 'surrogatepass'))
1368 dispatch[BINUNICODE[0]] = load_binunicode
1369
1370 def load_binunicode8(self):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected