From cd4c9f82fc8d17726baa4b4a69c54151fb181f40 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 6 Dec 2020 16:34:52 +0100 Subject: Remove OrderedDict usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- slixmpp/plugins/xep_0131/stanza.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'slixmpp/plugins/xep_0131/stanza.py') diff --git a/slixmpp/plugins/xep_0131/stanza.py b/slixmpp/plugins/xep_0131/stanza.py index d075c15e..9f7bfa36 100644 --- a/slixmpp/plugins/xep_0131/stanza.py +++ b/slixmpp/plugins/xep_0131/stanza.py @@ -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', '') -- cgit v1.2.3