Remove OrderedDict usage

We now support only Python 3.7+, this means we can rely on dict being
ordered by order of insertion, and thus no need to use OrderedDict from
collections.
This commit is contained in:
Emmanuel Gil Peyrot
2020-12-06 16:34:52 +01:00
parent 05749c4969
commit cd4c9f82fc
8 changed files with 14 additions and 53 deletions

View File

@@ -6,7 +6,6 @@
See the file LICENSE for copying permission.
"""
from collections import OrderedDict
from slixmpp.xmlstream import ET, ElementBase
@@ -18,7 +17,7 @@ class Headers(ElementBase):
is_extension = True
def get_headers(self):
result = OrderedDict()
result = {}
headers = self.xml.findall('{%s}header' % self.namespace)
for header in headers:
name = header.attrib.get('name', '')