Skip to content
This repository was archived by the owner on Dec 21, 2022. It is now read-only.
Open
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
10 changes: 8 additions & 2 deletions storm/kommandr.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
from itertools import izip_longest
except ImportError:
from itertools import zip_longest as izip_longest
import collections


try:
from collections.abc import Callable
except ImportError:
from collections import Callable


import six

Expand Down Expand Up @@ -95,7 +101,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], Callable):
return self._generate_command(args[0])
else:
def _command(func):
Expand Down