Skip to content

Commit

Permalink
Merge pull request #109 from SolidTux/master
Browse files Browse the repository at this point in the history
Update collection path for Python 3.8+.
  • Loading branch information
uvemas authored Jan 21, 2022
2 parents 2ce8ec2 + cbc1815 commit b6f1a81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vitables/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def insertInMenu(menu, entries, uid):
:return: None
"""

if not isinstance(entries, collections.Iterable):
if not isinstance(entries, collections.abc.Iterable):
entries = [entries]

if isinstance(entries[0], QtWidgets.QAction):
Expand Down Expand Up @@ -177,7 +177,7 @@ def addToMenu(menu, entries):
:return: None
"""

if not isinstance(entries, collections.Iterable):
if not isinstance(entries, collections.abc.Iterable):
entries = [entries]

if isinstance(entries[0], QtWidgets.QAction):
Expand Down

0 comments on commit b6f1a81

Please sign in to comment.