mirror of
https://github.com/wassname/ray.git
synced 2026-08-14 12:40:23 +08:00
Python 2 compatibility. (#5887)
This commit is contained in:
@@ -354,7 +354,7 @@ class NodeLauncher(threading.Thread):
|
||||
logger.info(prefix + " {}".format(statement))
|
||||
|
||||
|
||||
class ConcurrentCounter():
|
||||
class ConcurrentCounter(object):
|
||||
def __init__(self):
|
||||
self._value = 0
|
||||
self._lock = threading.Lock()
|
||||
|
||||
@@ -8,7 +8,7 @@ import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class LogTimer():
|
||||
class LogTimer(object):
|
||||
def __init__(self, message):
|
||||
self._message = message
|
||||
|
||||
|
||||
Reference in New Issue
Block a user