remnant changes

This commit is contained in:
mjames-upc 2018-09-06 18:10:43 -06:00
parent e119769c84
commit 445461021c
3 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ def convertToDateTime(timeArg):
totalSecs = int(timeArg)
micros = int((timeArg - totalSecs) * MICROS_IN_SECOND)
return _convertSecsAndMicros(totalSecs, micros)
elif isinstance(timeArg, (int, int)):
elif isinstance(timeArg, int):
# seconds as integer
totalSecs = timeArg
return _convertSecsAndMicros(totalSecs, 0)

View file

@ -87,7 +87,7 @@ class NotificationMessage:
def connection_timeout(self, connection):
if (connection is not None and not connection.is_connected()):
print("Connection Retry Timeout")
for tid, tobj in threading._active.items():
for tid, tobj in list(threading._active.items()):
if tobj.name is "MainThread":
res = ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, ctypes.py_object(SystemExit))
if res != 0 and res != 1:

View file

@ -254,7 +254,7 @@ def _getSite(host):
def _parseJsonList(manager, response, context, path):
fileList = []
jsonResponse = loadjson(response)
for name, jsonData in jsonResponse.items():
for name, jsonData in list(jsonResponse.items()):
checksum = jsonData["checksum"]
timestampString = jsonData["timestamp"]
timestamp = dateutil.parser.parse(timestampString)