mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
remnant changes
This commit is contained in:
parent
e119769c84
commit
445461021c
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue