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_xep_0004.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/test_stanza_xep_0004.py') diff --git a/tests/test_stanza_xep_0004.py b/tests/test_stanza_xep_0004.py index 7b01b575..f8ef7a4c 100644 --- a/tests/test_stanza_xep_0004.py +++ b/tests/test_stanza_xep_0004.py @@ -1,7 +1,6 @@ import unittest from slixmpp import Message from slixmpp.test import SlixTest -from collections import OrderedDict import slixmpp.plugins.xep_0004 as xep_0004 from slixmpp.xmlstream import register_stanza_plugin @@ -52,7 +51,7 @@ class TestDataForms(SlixTest): """) - fields = OrderedDict() + fields = {} fields['f1'] = {'type': 'text-single', 'label': 'Username', 'required': True} @@ -125,7 +124,7 @@ class TestDataForms(SlixTest): msg = self.Message() form = msg['form'] - fields = OrderedDict() + fields = {} fields['f1'] = {'type': 'text-single', 'label': 'Username', 'required': True} @@ -173,7 +172,7 @@ class TestDataForms(SlixTest): msg = self.Message() form = msg['form'] - fields = OrderedDict() + fields = {} fields['f1'] = {'type': 'text-single', 'label': 'Username', 'required': True} -- cgit v1.2.3