diff options
Diffstat (limited to 'decorator/src/decorator.py')
-rw-r--r-- | decorator/src/decorator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decorator/src/decorator.py b/decorator/src/decorator.py index d9fb01e..ffc8911 100644 --- a/decorator/src/decorator.py +++ b/decorator/src/decorator.py @@ -162,7 +162,7 @@ class FunctionMaker(object): @classmethod def create(cls, obj, body, evaldict, defaults=None, - doc=None, module=None, addsource=True,**attrs): + doc=None, module=None, addsource=True, **attrs): """ Create a function from the strings name, signature and body. evaldict is the evaluation dictionary. If addsource is true an attribute @@ -193,7 +193,7 @@ def decorator(caller, func=None): evaldict['_func_'] = func return FunctionMaker.create( func, "return _call_(_func_, %(shortsignature)s)", - evaldict, undecorated=func) + evaldict, undecorated=func, __wrapped__=func) else: # returns a decorator if isinstance(caller, partial): return partial(decorator, caller) |