Skip to content

Commit fe91e3f

Browse files
committed
node: fix deprecated Iterable import in py3.10
Import from collections.abc instead if import from collections fails.
1 parent d9fba83 commit fe91e3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: testgres/node.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
import subprocess
77
import time
88

9-
from collections import Iterable
9+
try:
10+
from collections import Iterable
11+
except ImportError:
12+
from collections.abc import Iterable
13+
1014
from shutil import rmtree
1115
from six import raise_from, iteritems, text_type
1216
from tempfile import mkstemp, mkdtemp

0 commit comments

Comments
 (0)