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)
|
totalSecs = int(timeArg)
|
||||||
micros = int((timeArg - totalSecs) * MICROS_IN_SECOND)
|
micros = int((timeArg - totalSecs) * MICROS_IN_SECOND)
|
||||||
return _convertSecsAndMicros(totalSecs, micros)
|
return _convertSecsAndMicros(totalSecs, micros)
|
||||||
elif isinstance(timeArg, (int, int)):
|
elif isinstance(timeArg, int):
|
||||||
# seconds as integer
|
# seconds as integer
|
||||||
totalSecs = timeArg
|
totalSecs = timeArg
|
||||||
return _convertSecsAndMicros(totalSecs, 0)
|
return _convertSecsAndMicros(totalSecs, 0)
|
||||||
|
|
|
@ -87,7 +87,7 @@ class NotificationMessage:
|
||||||
def connection_timeout(self, connection):
|
def connection_timeout(self, connection):
|
||||||
if (connection is not None and not connection.is_connected()):
|
if (connection is not None and not connection.is_connected()):
|
||||||
print("Connection Retry Timeout")
|
print("Connection Retry Timeout")
|
||||||
for tid, tobj in threading._active.items():
|
for tid, tobj in list(threading._active.items()):
|
||||||
if tobj.name is "MainThread":
|
if tobj.name is "MainThread":
|
||||||
res = ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, ctypes.py_object(SystemExit))
|
res = ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, ctypes.py_object(SystemExit))
|
||||||
if res != 0 and res != 1:
|
if res != 0 and res != 1:
|
||||||
|
|
|
@ -254,7 +254,7 @@ def _getSite(host):
|
||||||
def _parseJsonList(manager, response, context, path):
|
def _parseJsonList(manager, response, context, path):
|
||||||
fileList = []
|
fileList = []
|
||||||
jsonResponse = loadjson(response)
|
jsonResponse = loadjson(response)
|
||||||
for name, jsonData in jsonResponse.items():
|
for name, jsonData in list(jsonResponse.items()):
|
||||||
checksum = jsonData["checksum"]
|
checksum = jsonData["checksum"]
|
||||||
timestampString = jsonData["timestamp"]
|
timestampString = jsonData["timestamp"]
|
||||||
timestamp = dateutil.parser.parse(timestampString)
|
timestamp = dateutil.parser.parse(timestampString)
|
||||||
|
|
Loading…
Add table
Reference in a new issue