diff options
Diffstat (limited to 'grit/format/policy_templates/writers/xml_formatted_writer.py')
-rw-r--r-- | grit/format/policy_templates/writers/xml_formatted_writer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grit/format/policy_templates/writers/xml_formatted_writer.py b/grit/format/policy_templates/writers/xml_formatted_writer.py index dad3717..5917fb4 100644 --- a/grit/format/policy_templates/writers/xml_formatted_writer.py +++ b/grit/format/policy_templates/writers/xml_formatted_writer.py @@ -31,7 +31,7 @@ class XMLFormattedWriter(template_writer.TemplateWriter): doc = parent.ownerDocument element = doc.createElement(name) - for key, value in attrs.iteritems(): + for key, value in sorted(attrs.iteritems()): element.setAttribute(key, value) if text: element.appendChild(doc.createTextNode(text)) |