From 3815ee17e1e1b04d85d9c62d33baccf8a0e33edf Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Wed, 17 Oct 2012 23:03:19 -0700 Subject: [PATCH] Fix iterator in TCAS resolution advisories. --- python/parse.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/parse.py b/python/parse.py index cfc20a0..b76619a 100644 --- a/python/parse.py +++ b/python/parse.py @@ -397,13 +397,13 @@ class parse: ara = data["ara"] #check to see which bits are set resolutions = "" - for bit, name in ara_bits: + for bit in ara_bits: if ara & (1 << (54-bit)): - resolutions += " " + name + resolutions += " " + ara_bits[bit] complements = "" - for bit, name in rac_bits: + for bit in rac_bits: if rac & (1 << (58-bit)): - complements += " " + name + complements += " " + rac_bits[bit] return (resolutions, complements) #rat is 1 if resolution advisory terminated <18s ago