Skip to content
This repository was archived by the owner on Dec 21, 2022. It is now read-only.

Classes Sequence and Callable has been moved to collections.abc since… #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion storm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion storm/kommandr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down