diff options
| author | Michele Simionato <michele.simionato@gmail.com> | 2017-01-15 10:33:27 +0100 |
|---|---|---|
| committer | Michele Simionato <michele.simionato@gmail.com> | 2017-01-15 10:33:27 +0100 |
| commit | 763f3d42e3380b17a6b51113649c2b703c4d6c55 (patch) | |
| tree | 7f03b6120e7e4329d94c463abb6b7067e4dfc12a /src | |
| parent | 8608a4672a5c4ae390040d56ef049980a144c280 (diff) | |
| download | python-decorator-git-763f3d42e3380b17a6b51113649c2b703c4d6c55.tar.gz | |
Fixed Python 2 issue
Diffstat (limited to 'src')
| -rw-r--r-- | src/decorator.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
