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/stanza/stream_features.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'slixmpp/stanza') diff --git a/slixmpp/stanza/stream_features.py b/slixmpp/stanza/stream_features.py index 70d0ccca..027747a1 100644 --- a/slixmpp/stanza/stream_features.py +++ b/slixmpp/stanza/stream_features.py @@ -6,7 +6,6 @@ See the file LICENSE for copying permission. """ -from collections import OrderedDict from slixmpp.xmlstream import StanzaBase @@ -29,7 +28,7 @@ class StreamFeatures(StanzaBase): def get_features(self): """ """ - features = OrderedDict() + features = {} for (name, lang), plugin in self.plugins.items(): features[name] = plugin return features -- cgit v1.2.3