From 03ef9a4a87576812f537a2b36930e753d3464c05 Mon Sep 17 00:00:00 2001 From: mscherer Date: Mon, 5 Jul 2021 17:40:37 +0200 Subject: [PATCH] Make tools.py work on python 3.10 collections.MutableSet is deprecated since Python 3.3, and display this warning: ``` :1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working ``` Now 3.10 is out, the code is breaking when running test on Fedora Rawhide. --- common/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tools.py b/common/tools.py index 528da707a..05b2dc2e8 100644 --- a/common/tools.py +++ b/common/tools.py @@ -1802,7 +1802,7 @@ def reset(self, path): self.history = [path,] self.index = 0 -class OrderedSet(collections.MutableSet): +class OrderedSet(collections.abc.MutableSet): """ OrderedSet from Python recipe http://code.activestate.com/recipes/576694/