Vehicle-Anti-Theft-Face-Rec.../venv/Lib/site-packages/joblib/externals/cloudpickle/compat.py

14 lines
354 B
Python
Raw Permalink Normal View History

2020-11-12 16:05:57 +00: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
from pickle import _Pickler as Pickler # noqa: F401
else:
import pickle # noqa: F401
from _pickle import Pickler # noqa: F401