Skip to content

Commit

Permalink
Update dict.iteritems to dict.items (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayo Kallas authored and Futabay committed May 19, 2020
1 parent aa28077 commit a437eec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ait/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion test_scripts/notification_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a437eec

Please sign in to comment.