diff --git a/ait/gui/__init__.py b/ait/gui/__init__.py index ad600219..70b36623 100644 --- a/ait/gui/__init__.py +++ b/ait/gui/__init__.py @@ -94,7 +94,7 @@ def getPacketDefn(uid): else: tlmdict = ait.core.tlm.getDefaultDict() - for k, v in tlmdict.iteritems(): + for k, v in tlmdict.items(): if v.uid == uid: packet_defns[uid] = v return v @@ -175,7 +175,7 @@ class Playback(object): be sent to the frontend during this. playback.enabled: True if historical data playback is enabled. This will be False if a database connection cannot be made or if data playback is disabled for - some other reason. + some other reason. """ def __init__(self): @@ -316,7 +316,7 @@ def process(self, input_data, topic=None): self.process_log_msg(input_data) processed = True - if not processed: + if not processed: raise ValueError('Topic of received message not recognized as telem or log stream.') def process_telem_msg(self, msg): diff --git a/test_scripts/notification_test.py b/test_scripts/notification_test.py index d04736f8..a4a2a6fa 100644 --- a/test_scripts/notification_test.py +++ b/test_scripts/notification_test.py @@ -98,7 +98,7 @@ def get_packet_and_defn(): def get_limit_dict(): limit_dict = defaultdict(dict) - for k, v in limits.getDefaultDict().iteritems(): + for k, v in limits.getDefaultDict().items(): packet, field = k.split('.') limit_dict[packet][field] = v