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

testgres/node.py

Lines changed: 5 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy