summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-08-19 22:33:29 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2021-08-19 22:33:53 +0300
commit792a27ab770d6dfc9c6fd95f1c3c0f71daf43233 (patch)
tree76f0862a7f2039e1d5753e6a61609d2eba600c7a /dev-python/wstools/files
parentdev-python/test_server: mark ALLARCHES (diff)
downloadgentoo-792a27ab770d6dfc9c6fd95f1c3c0f71daf43233.tar.gz
gentoo-792a27ab770d6dfc9c6fd95f1c3c0f71daf43233.tar.bz2
gentoo-792a27ab770d6dfc9c6fd95f1c3c0f71daf43233.zip
dev-python/wstools: enable py3.{9,10}
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/wstools/files')
-rw-r--r--dev-python/wstools/files/wstools-0.4.8-fix-py3.10.patch29
1 files changed, 29 insertions, 0 deletions
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 <arthurzam@gentoo.org>
+Date: Thu, 19 Aug 2021 22:27:48 +0300
+Subject: [PATCH] Fix import collections.abc for python 3.10
+
+Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
+---
+ 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
+