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