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:
@@ -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', '')
|
||||
|
||||
Reference in New Issue
Block a user