diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2018-09-19 09:33:34 -0700 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-09-20 18:59:16 +0300 |
| commit | 83ad728e19c4be782dff6c582cfc298bc58f3cfb (patch) | |
| tree | 84a113a16087bdff505db89a095288a08125d596 /mesonbuild/mesonlib.py | |
| parent | 62d92e3a19e2e6b599a8499dee24f857b46123b4 (diff) | |
| download | meson-83ad728e19c4be782dff6c582cfc298bc58f3cfb.tar.gz | |
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.
Diffstat (limited to 'mesonbuild/mesonlib.py')
| -rw-r--r-- | mesonbuild/mesonlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index bbab2ef40..8648a0dcf 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. """ |
