summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichele Simionato <michele.simionato@gmail.com>2011-04-22 14:32:15 +0200
committerMichele Simionato <michele.simionato@gmail.com>2011-04-22 14:32:15 +0200
commite0faad90516809fff91a9e30e21c32e00b3e7014 (patch)
treed17989f67394aad14150d0b67896cd54bf313dba /src
parentb38dfc03ab923a3b9bbae330ec5737da104e6d8b (diff)
downloadpython-decorator-git-e0faad90516809fff91a9e30e21c32e00b3e7014.tar.gz
Added __wrapped__ even to the high level usage of decorator
Diffstat (limited to 'src')
-rw-r--r--src/decorator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decorator.py b/src/decorator.py
index ffc8911..67e2221 100644
--- a/src/decorator.py
+++ b/src/decorator.py
@@ -205,5 +205,5 @@ def decorator(caller, func=None):
return FunctionMaker.create(
'%s(%s)' % (caller.__name__, first),
'return decorator(_call_, %s)' % first,
- evaldict, undecorated=caller,
+ evaldict, undecorated=caller, __wrapped__=caller,
doc=caller.__doc__, module=caller.__module__)