From b1281214514c08adb74212afc68033366331e6d4 Mon Sep 17 00:00:00 2001 From: Caller user Date: Tue, 8 Feb 2022 11:10:39 +0000 Subject: [PATCH] Python3.10 patch --- slixmpp/thirdparty/orderedset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slixmpp/thirdparty/orderedset.py b/slixmpp/thirdparty/orderedset.py index f6642db..7a88e84 100644 --- a/slixmpp/thirdparty/orderedset.py +++ b/slixmpp/thirdparty/orderedset.py @@ -20,9 +20,9 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. -import collections +from collections.abc import MutableSet -class OrderedSet(collections.MutableSet): +class OrderedSet(MutableSet): def __init__(self, iterable=None): self.end = end = [] @@ -86,4 +86,4 @@ if __name__ == '__main__': t = OrderedSet('simsalabim') print(s | t) print(s & t) - print(s - t) \ No newline at end of file + print(s - t) -- 2.33.0