From 763f3d42e3380b17a6b51113649c2b703c4d6c55 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Sun, 15 Jan 2017 10:33:27 +0100 Subject: Fixed Python 2 issue --- src/decorator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/decorator.py b/src/decorator.py index 6362c02..43be279 100644 --- a/src/decorator.py +++ b/src/decorator.py @@ -108,7 +108,7 @@ class FunctionMaker(object): if sys.version < '3': # easy way self.shortsignature = self.signature = ( inspect.formatargspec( - formatvalue=lambda val: "", *argspec)[1:-1]) + formatvalue=lambda val: "", *argspec[:-2])[1:-1]) else: # Python 3 way allargs = list(self.args) allshortargs = list(self.args) -- cgit v1.2.1