Inzynierka_Gwiazdy/machine_learning/Lib/site-packages/joblib/externals/cloudpickle/compat.py

19 lines
508 B
Python
Raw Normal View History

2023-09-20 19:46:58 +02:00
import sys
if sys.version_info < (3, 8):
try:
import pickle5 as pickle # noqa: F401
from pickle5 import Pickler # noqa: F401
except ImportError:
import pickle # noqa: F401
# Use the Python pickler for old CPython versions
from pickle import _Pickler as Pickler # noqa: F401
else:
import pickle # noqa: F401
# Pickler will the C implementation in CPython and the Python
# implementation in PyPy
from pickle import Pickler # noqa: F401