Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/joblib/externals/cloudpickle/compat.py: 40%
10 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
1import sys
4if sys.version_info < (3, 8):
5 try:
6 import pickle5 as pickle # noqa: F401
7 from pickle5 import Pickler # noqa: F401
8 except ImportError:
9 import pickle # noqa: F401
11 # Use the Python pickler for old CPython versions
12 from pickle import _Pickler as Pickler # noqa: F401
13else:
14 import pickle # noqa: F401
16 # Pickler will the C implementation in CPython and the Python
17 # implementation in PyPy
18 from pickle import Pickler # noqa: F401