Python 2 compatibility. (#5887)

This commit is contained in:
Robert Nishihara
2019-10-10 19:09:25 -07:00
committed by GitHub
parent c3b2ae26c5
commit 523c764c25
12 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -8,7 +8,7 @@ import logging
logger = logging.getLogger(__name__)
class LogTimer():
class LogTimer(object):
def __init__(self, message):
self._message = message