Remove six and cloudpickle from setup.py. (#7694)

This commit is contained in:
Robert Nishihara
2020-03-23 11:42:05 -07:00
committed by GitHub
parent 1a0c9228d0
commit ee8c9ff732
15 changed files with 20 additions and 67 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
import copy
import logging
import os
import six
from ray.tune.error import TuneError
from ray.tune.registry import register_trainable, get_trainable_cls
@@ -189,7 +188,7 @@ class Experiment:
A string representing the trainable identifier.
"""
if isinstance(run_object, six.string_types):
if isinstance(run_object, str):
return run_object
elif isinstance(run_object, sample_from):
logger.warning("Not registering trainable. Resolving as variant.")