From 38ea1b0cda4791d9b67ddeb635faf4b08d263a8b Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Fri, 20 Aug 2021 01:36:08 +0000 Subject: Adding metadata --- .../files/test_server-0.0.31-fix-py3.10.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 dev-python/test_server/files/test_server-0.0.31-fix-py3.10.patch (limited to 'dev-python/test_server/files') 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 +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 -- cgit v1.3.1