diff options
author | Nick Pope <nick.pope@flightdataservices.com> | 2019-02-05 11:22:08 +0000 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2019-02-06 13:48:39 -0500 |
commit | 24b82cd201e21060fbc02117dc16d1702877a1f3 (patch) | |
tree | 7d36db9251700d0abf8fbf69399c8abc7fd9026a /django/utils/xmlutils.py | |
parent | 21bb71ef0dcb86798edb0d8b21138bcc4b947590 (diff) | |
download | django-24b82cd201e21060fbc02117dc16d1702877a1f3.tar.gz |
Fixed #30159 -- Removed unneeded use of OrderedDict.
Dicts preserve order since Python 3.6.
Diffstat (limited to 'django/utils/xmlutils.py')
-rw-r--r-- | django/utils/xmlutils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/utils/xmlutils.py b/django/utils/xmlutils.py index 1a14034243..e4607b9865 100644 --- a/django/utils/xmlutils.py +++ b/django/utils/xmlutils.py @@ -3,7 +3,6 @@ Utilities for XML generation/parsing. """ import re -from collections import OrderedDict from xml.sax.saxutils import XMLGenerator @@ -30,5 +29,5 @@ class SimplerXMLGenerator(XMLGenerator): def startElement(self, name, attrs): # Sort attrs for a deterministic output. - sorted_attrs = OrderedDict(sorted(attrs.items())) if attrs else attrs + sorted_attrs = dict(sorted(attrs.items())) if attrs else attrs super().startElement(name, sorted_attrs) |