summaryrefslogtreecommitdiff
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
commit5092314588d6378240be7608a8cae82d5e9ff675 (patch)
tree1c9c5bfc0eae2a00b1df9b35ada4f9b4ef51427a
parent50585f878d39a35c5d2726374e824cc396d8ea78 (diff)
downloadmicheles-5092314588d6378240be7608a8cae82d5e9ff675.tar.gz
Added __wrapped__ even to the high level usage of decorator
-rw-r--r--decorator/src/decorator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/decorator/src/decorator.py b/decorator/src/decorator.py
index ffc8911..67e2221 100644
--- a/decorator/src/decorator.py
+++ b/decorator/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__)