From 7c59acba5699c9c58090a7a738669669a7307023 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 21 Aug 2021 23:14:26 +0100 Subject: gentoo resync : 21.08.2021 --- .../wstools/files/wstools-0.4.8-fix-py3.10.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 dev-python/wstools/files/wstools-0.4.8-fix-py3.10.patch (limited to 'dev-python/wstools/files') diff --git a/dev-python/wstools/files/wstools-0.4.8-fix-py3.10.patch b/dev-python/wstools/files/wstools-0.4.8-fix-py3.10.patch new file mode 100644 index 000000000000..4baf12faf570 --- /dev/null +++ b/dev-python/wstools/files/wstools-0.4.8-fix-py3.10.patch @@ -0,0 +1,29 @@ +From c0aa811a845e78c27ef949b4dbc82dfcd9c3da68 Mon Sep 17 00:00:00 2001 +From: Arthur Zamarin +Date: Thu, 19 Aug 2021 22:27:48 +0300 +Subject: [PATCH] Fix import collections.abc for python 3.10 + +Signed-off-by: Arthur Zamarin +--- + wstools/Utility.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/wstools/Utility.py b/wstools/Utility.py +index c1ccd65..f5f1453 100644 +--- a/wstools/Utility.py ++++ b/wstools/Utility.py +@@ -33,7 +33,10 @@ try: + from UserDict import DictMixin # noqa + except ImportError: + from collections import UserDict +- from collections import MutableMapping as DictMixin # noqa ++ try: ++ from collections.abc import MutableMapping as DictMixin # noqa ++ except ImportError: ++ from collections import MutableMapping as DictMixin # noqa + + from .TimeoutSocket import TimeoutSocket, TimeoutError # noqa + +-- +2.33.0 + -- cgit v1.2.3