From f7d77d0874b44fd7010bd870a6762863e96615fe Mon Sep 17 00:00:00 2001 From: Florian Best Date: Tue, 23 Jun 2020 09:11:05 +0200 Subject: [PATCH] Fix DeprecationWarning: collections.MutableMapping DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working There is no six.moves.collections.abc yet: --- .../python/univention/config_registry/backend.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/univention-config-registry/python/univention/config_registry/backend.py b/base/univention-config-registry/python/univention/config_registry/backend.py index 306dbc3794a..b11db602588 100644 --- a/base/univention-config-registry/python/univention/config_registry/backend.py +++ b/base/univention-config-registry/python/univention/config_registry/backend.py @@ -36,7 +36,10 @@ import re import errno import time -from collections import MutableMapping +try: + from collections.abc import MutableMapping # Python 3.3+ +except ImportError: + from collections import MutableMapping import six try: from typing import overload, Any, Dict, IO, Iterator, List, NoReturn, Optional, Set, Tuple, Type, TypeVar, Union # noqa F401