(s, /, *, fix_imports=True, encoding="ASCII", errors="strict",
buffers=None)
| 1882 | encoding=encoding, errors=errors).load() |
| 1883 | |
| 1884 | def _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 |
| 1893 | try: |
nothing calls this directly
no test coverage detected