summaryrefslogtreecommitdiff
path: root/ast2json/imachine2json.py
diff options
context:
space:
mode:
Diffstat (limited to 'ast2json/imachine2json.py')
-rwxr-xr-xast2json/imachine2json.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ast2json/imachine2json.py b/ast2json/imachine2json.py
index db1878c..e865a73 100755
--- a/ast2json/imachine2json.py
+++ b/ast2json/imachine2json.py
@@ -8,9 +8,9 @@ def imachine2json(ast):
if ast[0]['_type'] != 'Label':
raise TypeError('obj does not start with Label, wrong file?')
for label in ast:
- if label['parameters'] is not None or label['hide']:
+ if label['parameters'] is not None:
raise NotImplementedError()
- ret[label['name']] = label
+ ret[label['name']] = label['block']
return ret
with open(sys.argv[1], 'r') as f: