blob: 755a641440a5a0b15115a71024b9d887bc1bc9c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|