summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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__)