From cbc1815b23dd5ff264b31f2076f033ccb77a727e Mon Sep 17 00:00:00 2001 From: Daniel Hauck Date: Fri, 21 Jan 2022 12:36:42 +0100 Subject: [PATCH] Update collection path for Python 3.8+. --- vitables/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vitables/utils.py b/vitables/utils.py index 362fd766..51414e16 100644 --- a/vitables/utils.py +++ b/vitables/utils.py @@ -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): @@ -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):