Skip to content

Commit

Permalink
Substitute collections.abc.Iterable for collections.Iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
John Dawson committed Nov 25, 2022
1 parent 1665b93 commit f7909fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkx_viewer/graph_canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ def flatten(l):
# Py3k
bs = str
for el in l:
if isinstance(el, collections.Iterable) and not isinstance(el, bs):
if isinstance(el, collections.abc.Iterable) and not isinstance(el, bs):
for sub in flatten(el):
yield sub
else:
Expand Down

0 comments on commit f7909fe

Please sign in to comment.