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. --- tests/test_stanza_element.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/test_stanza_element.py') diff --git a/tests/test_stanza_element.py b/tests/test_stanza_element.py index 2090f05a..8ebc9b23 100644 --- a/tests/test_stanza_element.py +++ b/tests/test_stanza_element.py @@ -1,7 +1,6 @@ import unittest from slixmpp.test import SlixTest from slixmpp.xmlstream.stanzabase import ElementBase, register_stanza_plugin, ET -from collections import OrderedDict class TestElementBase(SlixTest): @@ -1221,7 +1220,7 @@ class TestElementBase(SlixTest): sub_interfaces = interfaces lang_interfaces = interfaces - data = OrderedDict() + data = {} data['en'] = 'hi' data['fr'] = 'bonjour' data['no'] = 'hej' -- cgit v1.2.3