diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-08-12 07:10:08 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2013-10-08 20:56:57 +0200 |
commit | 2f8d00d6474cc946f5f346eaa832eaf0f09a6f0a (patch) | |
tree | 81fbc4ddc6002532e503cf4b60bf5e6fbd954ee6 /giscanner/maintransformer.py | |
parent | 700b8e41bb861fe8d8d3114c45cd8547d424c645 (diff) | |
download | gobject-introspection-2f8d00d6474cc946f5f346eaa832eaf0f09a6f0a.tar.gz |
giscanner: make Annotated.attributes an OrderedDict
annotationparser.py already stores attributes in a mapping so
it makes little sense using a list of tuples (suggesting
multiple duplicate keys would be allowed) on the ast side.
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r-- | giscanner/maintransformer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index 8de96160..92a07734 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -576,7 +576,7 @@ class MainTransformer(object): if attributes_annotation is not None: for key, value in attributes_annotation.items(): if value: - node.attributes.append((key, value)) + node.attributes[key] = value def _apply_annotations_annotated(self, node, block): if block is None: @@ -610,7 +610,7 @@ class MainTransformer(object): if attributes_annotation is not None: for key, value in attributes_annotation.items(): if value: - node.attributes.append((key, value)) + node.attributes[key] = value if ANN_SKIP in block.annotations: node.skip = True |