Skip to content

Commit

Permalink
Merge pull request #22 from JDawson-Camlin/master
Browse files Browse the repository at this point in the history
Substitute `collections.abc.Iterable` for `collections.Iterable`
  • Loading branch information
jsexauer committed Dec 26, 2022
2 parents 1665b93 + f7909fe commit a26f264
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 a26f264

Please sign in to comment.