summaryrefslogtreecommitdiff
path: root/django/utils/xmlutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils/xmlutils.py')
-rw-r--r--django/utils/xmlutils.py3
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)