diff --git a/storm/__main__.py b/storm/__main__.py index b2dcf7e..69dd340 100644 --- a/storm/__main__.py +++ b/storm/__main__.py @@ -224,7 +224,7 @@ def list(config=None): result += " {0}".format(custom_options) extra = True - if isinstance(value, collections.Sequence): + if isinstance(value, collections.abc.Sequence): if isinstance(value, builtins.list): value = ",".join(value) diff --git a/storm/kommandr.py b/storm/kommandr.py index 71d9c13..f6cdef0 100644 --- a/storm/kommandr.py +++ b/storm/kommandr.py @@ -95,7 +95,7 @@ def __init__(self, **kwargs): def command(self, *args, **kwargs): """Convenient decorator simply creates corresponding command""" - if len(args) == 1 and isinstance(args[0], collections.Callable): + if len(args) == 1 and isinstance(args[0], collections.abc.Callable): return self._generate_command(args[0]) else: def _command(func):