mirror of
https://github.com/wassname/ray.git
synced 2026-07-20 12:40:20 +08:00
Python 2 compatibility. (#5887)
This commit is contained in:
@@ -41,7 +41,7 @@ def log_sync_template():
|
||||
).format(ssh_key=quote(ssh_key))
|
||||
|
||||
|
||||
class NodeSyncMixin():
|
||||
class NodeSyncMixin(object):
|
||||
"""Mixin for syncing files to/from a remote dir to a local dir."""
|
||||
|
||||
def __init__(self):
|
||||
|
||||
@@ -294,7 +294,7 @@ class HyperBandScheduler(FIFOScheduler):
|
||||
trial_runner.trial_executor.unpause_trial(trial)
|
||||
|
||||
|
||||
class Bracket():
|
||||
class Bracket(object):
|
||||
"""Logical object for tracking Hyperband bracket progress. Keeps track
|
||||
of proper parameters as designated by HyperBand.
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ from ray.tune import commands
|
||||
from ray.tune.result import CONFIG_PREFIX
|
||||
|
||||
|
||||
class Capturing():
|
||||
class Capturing(object):
|
||||
def __enter__(self):
|
||||
self._stdout = sys.stdout
|
||||
sys.stdout = self._stringio = StringIO()
|
||||
|
||||
Reference in New Issue
Block a user