Deprecate use_pickle flag (#7474)

This commit is contained in:
Edward Oakes
2020-03-09 16:03:56 -07:00
committed by GitHub
parent 0c254295b0
commit 4ab80eafb9
12 changed files with 50 additions and 250 deletions
+2 -16
View File
@@ -1,19 +1,5 @@
from __future__ import absolute_import
import os
import sys
CLOUDPICKLE_PATH = os.path.dirname(os.path.realpath(__file__))
from ray.cloudpickle.cloudpickle_fast import * # noqa: F401, F403
if os.path.exists(os.path.join(CLOUDPICKLE_PATH, "..", "pickle5_files", "pickle5")):
HAS_PICKLE5 = True
else:
HAS_PICKLE5 = False
if sys.version_info[:2] >= (3, 8) or HAS_PICKLE5:
from ray.cloudpickle.cloudpickle_fast import *
FAST_CLOUDPICKLE_USED = True
else:
from ray.cloudpickle.cloudpickle import *
FAST_CLOUDPICKLE_USED = False
__version__ = '1.2.2.dev0'
__version__ = "1.2.2.dev0"