(s, /, *, fix_imports=True, encoding="ASCII", errors="strict",
buffers=None)
| 1913 | encoding=encoding, errors=errors).load() |
| 1914 | |
| 1915 | def _loads(s, /, *, fix_imports=True, encoding="ASCII", errors="strict", |
| 1916 | buffers=None): |
| 1917 | if isinstance(s, str): |
| 1918 | raise TypeError("Can't load pickle from unicode string") |
| 1919 | file = io.BytesIO(s) |
| 1920 | return _Unpickler(file, fix_imports=fix_imports, buffers=buffers, |
| 1921 | encoding=encoding, errors=errors).load() |
| 1922 | |
| 1923 | # Use the faster _pickle if possible |
| 1924 | try: |
nothing calls this directly
no test coverage detected
searching dependent graphs…