Skip to content

Commit a99cb60

Browse files
authored
Merge pull request #62 from shenghaoyang/master
node: fix deprecated Iterable import in py3.10
2 parents 87e9fd5 + fe91e3f commit a99cb60

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)