Fixed a bug that arose during PEP8 style improvements
authorRick van Rein <rick@openfortress.nl>
Fri, 1 Jul 2016 20:00:08 +0000 (21:00 +0100)
committerRick van Rein <rick@openfortress.nl>
Fri, 1 Jul 2016 20:00:08 +0000 (21:00 +0100)
asn1ate/asn2quickder.py

index cd06121..9596791 100755 (executable)
@@ -295,8 +295,8 @@ mods = []
 for file in sys.argv [1:]:
     print('Parsing', file)
     with open(file, 'r') as asn1fh:
-        asn1tree = parser.parse_asn1(asn1fh.read())
-    asn1tree = parser.parse_asn1(asn1txt)
+       asn1txt  = asn1fh.read ()
+        asn1tree = parser.parse_asn1(asn1txt)
     print('Building semantic model for', file)
     asn1sem = build_semantic_model(asn1tree)
     mods.insert(0, asn1sem [0])