summaryrefslogtreecommitdiff
path: root/slixmpp/stanza/stream_features.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2020-12-06 16:34:52 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2020-12-06 17:00:47 +0100
commitcd4c9f82fc8d17726baa4b4a69c54151fb181f40 (patch)
treed47b5d13b0d79f6526661bf23caebbef9c57d136 /slixmpp/stanza/stream_features.py
parent05749c49690c00f2b1794212b2fb9281b6956a89 (diff)
downloadslixmpp-cd4c9f82fc8d17726baa4b4a69c54151fb181f40.tar.gz
slixmpp-cd4c9f82fc8d17726baa4b4a69c54151fb181f40.tar.bz2
slixmpp-cd4c9f82fc8d17726baa4b4a69c54151fb181f40.tar.xz
slixmpp-cd4c9f82fc8d17726baa4b4a69c54151fb181f40.zip
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.
Diffstat (limited to 'slixmpp/stanza/stream_features.py')
-rw-r--r--slixmpp/stanza/stream_features.py3
1 files changed, 1 insertions, 2 deletions
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