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

Function _loads

tools/python-3.11.9-amd64/Lib/pickle.py:1767–1773  ·  view source on GitHub ↗
(s, /, *, fix_imports=True, encoding="ASCII", errors="strict",
           buffers=None)

Source from the content-addressed store, hash-verified

1765 encoding=encoding, errors=errors).load()
1766
1767def _loads(s, /, *, fix_imports=True, encoding="ASCII", errors="strict",
1768 buffers=None):
1769 if isinstance(s, str):
1770 raise TypeError("Can't load pickle from unicode string")
1771 file = io.BytesIO(s)
1772 return _Unpickler(file, fix_imports=fix_imports, buffers=buffers,
1773 encoding=encoding, errors=errors).load()
1774
1775# Use the faster _pickle if possible
1776try:

Callers

nothing calls this directly

Calls 2

_UnpicklerClass · 0.85
loadMethod · 0.45

Tested by

no test coverage detected