diff --git a/invoke/_version.py b/invoke/_version.py index 17f4ce42..98f13cbc 100644 --- a/invoke/_version.py +++ b/invoke/_version.py @@ -1,2 +1,2 @@ -__version_info__ = (1, 7, 3) +__version_info__ = (1, 7, 6) __version__ = ".".join(map(str, __version_info__)) diff --git a/invoke/tasks.py b/invoke/tasks.py index f2069916..3ddf0bfe 100644 --- a/invoke/tasks.py +++ b/invoke/tasks.py @@ -4,12 +4,12 @@ """ from copy import deepcopy -import inspect import types from .context import Context from .parser import Argument, translate_underscores from .util import six +from .vendor.decorator import getargspec if six.PY3: from itertools import zip_longest @@ -150,7 +150,7 @@ def argspec(self, body): # TODO: __call__ exhibits the 'self' arg; do we manually nix 1st result # in argspec, or is there a way to get the "really callable" spec? func = body if isinstance(body, types.FunctionType) else body.__call__ - spec = inspect.getargspec(func) + spec = getargspec(func) arg_names = spec.args[:] matched_args = [reversed(x) for x in [spec.args, spec.defaults or []]] spec_dict = dict(zip_longest(*matched_args, fillvalue=NO_DEFAULT))