summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-08-12 07:10:08 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-10-08 20:56:57 +0200
commit2f8d00d6474cc946f5f346eaa832eaf0f09a6f0a (patch)
tree81fbc4ddc6002532e503cf4b60bf5e6fbd954ee6 /giscanner/girwriter.py
parent700b8e41bb861fe8d8d3114c45cd8547d424c645 (diff)
downloadgobject-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/girwriter.py')
-rw-r--r--giscanner/girwriter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index e5841ec1..2bc9f153 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -123,7 +123,7 @@ class GIRWriter(XMLWriter):
attrs.append(('version', node.version))
def _write_generic(self, node):
- for key, value in node.attributes:
+ for key, value in node.attributes.items():
self.write_tag('attribute', [('name', key), ('value', value)])
if hasattr(node, 'doc') and node.doc: