diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-08-21 23:14:26 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-08-21 23:14:26 +0100 |
commit | 7c59acba5699c9c58090a7a738669669a7307023 (patch) | |
tree | d51d27d020895a6b7a3298d9d1b9846c1fcb59a0 /dev-python/test_server/files/test_server-0.0.31-fix-py3.10.patch | |
parent | e2db47eaae00ec33f8971db44b68645c5d3b9590 (diff) |
gentoo resync : 21.08.2021
Diffstat (limited to 'dev-python/test_server/files/test_server-0.0.31-fix-py3.10.patch')
-rw-r--r-- | dev-python/test_server/files/test_server-0.0.31-fix-py3.10.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-python/test_server/files/test_server-0.0.31-fix-py3.10.patch b/dev-python/test_server/files/test_server-0.0.31-fix-py3.10.patch new file mode 100644 index 000000000000..755a641440a5 --- /dev/null +++ b/dev-python/test_server/files/test_server-0.0.31-fix-py3.10.patch @@ -0,0 +1,20 @@ +From: Karthikeyan Singaravelan <tir.karthi@gmail.com> +Date: Fri, 10 Apr 2020 06:30:21 +0000 +Subject: [PATCH] Import ABC from collections.abc instead of collections for + Python 3 compatibility. + +--- a/test_server/server.py ++++ b/test_server/server.py +@@ -6,7 +6,11 @@ + import time + import types + from six.moves.urllib.parse import urljoin +-from collections import defaultdict, Iterable ++from collections import defaultdict ++try: ++ from collections.abc import Iterable ++except ImportError: ++ from collections import Iterable + + import six + from webtest.http import StopableWSGIServer |