diff --git a/pitivi/utils/loggable.py b/pitivi/utils/loggable.py index 4554d0a5..c520ff2e 100644 --- a/pitivi/utils/loggable.py +++ b/pitivi/utils/loggable.py @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, see . -import collections +import collections.abc import errno import fnmatch import os @@ -713,7 +713,7 @@ def add_log_handler(func): Raises: TypeError: When func is not a callable. """ - if not isinstance(func, collections.Callable): + if not isinstance(func, collections.abc.Callable): raise TypeError("func must be callable") if func not in _log_handlers: @@ -735,7 +735,7 @@ def add_limited_log_handler(func): Raises: TypeError: When func is not a callable. """ - if not isinstance(func, collections.Callable): + if not isinstance(func, collections.abc.Callable): raise TypeError("func must be callable") if func not in _log_handlers_limited: