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

Function _loads

Lib/pickle.py:1884–1890  ·  view source on GitHub ↗
(s, /, *, fix_imports=True, encoding="ASCII", errors="strict",
           buffers=None)

Source from the content-addressed store, hash-verified

1882 encoding=encoding, errors=errors).load()
1883
1884def _loads(s, /, *, fix_imports=True, encoding="ASCII", errors="strict",
1885 buffers=None):
1886 if isinstance(s, str):
1887 raise TypeError("Can't load pickle from unicode string")
1888 file = io.BytesIO(s)
1889 return _Unpickler(file, fix_imports=fix_imports, buffers=buffers,
1890 encoding=encoding, errors=errors).load()
1891
1892# Use the faster _pickle if possible
1893try:

Callers

nothing calls this directly

Calls 3

isinstanceFunction · 0.85
_UnpicklerClass · 0.85
loadMethod · 0.45

Tested by

no test coverage detected