aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-09-19 09:33:34 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2018-09-20 18:59:16 +0300
commit83ad728e19c4be782dff6c582cfc298bc58f3cfb (patch)
tree84a113a16087bdff505db89a095288a08125d596
parent62d92e3a19e2e6b599a8499dee24f857b46123b4 (diff)
downloadmeson-83ad728e19c4be782dff6c582cfc298bc58f3cfb.zip
meson-83ad728e19c4be782dff6c582cfc298bc58f3cfb.tar.gz
meson-83ad728e19c4be782dff6c582cfc298bc58f3cfb.tar.bz2
mesonlib: use collections.abc for abc types
The use of ABC classes (like MutableSet) is deprecated currently, in python 3.8 the aliases in collections will be dropped and only the ones in collections.abc will remain. collections.abc has existed since python 3.3, so there is no backwards compatibility risk.
-rw-r--r--mesonbuild/mesonlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index bbab2ef..8648a0d 100644
--- a/mesonbuild/mesonlib.py
+++ b/mesonbuild/mesonlib.py
@@ -1062,7 +1062,7 @@ def substring_is_in_list(substr, strlist):
return True
return False
-class OrderedSet(collections.MutableSet):
+class OrderedSet(collections.abc.MutableSet):
"""A set that preserves the order in which items are added, by first
insertion.
"""