Skip to content

Commit 939d3f0

Browse files
authored
Resolve warning that will affect Python 3.10 compatibility (espressif#86)
I noticed this message during an otherwise successful build of our arduino-CAN fork: /home/runner/work/arduino-CAN/arduino-CAN/ci/build_platform.py:183: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working This should resolve the problem.
1 parent 2ef0a08 commit 939d3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def run_or_die(cmd, error):
180180
platform = ALL_PLATFORMS.get(arg, None)
181181
if isinstance(platform, str):
182182
platforms.append(arg)
183-
elif isinstance(platform, collections.Iterable):
183+
elif isinstance(platform, collections.abc.Iterable):
184184
for p in platform:
185185
platforms.append(p)
186186
else:

0 commit comments

Comments
 (0)