Skip to content

Commit 72f49b2

Browse files
committed
--
1 parent fd9a5f4 commit 72f49b2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

python_toolbox/cute_profile/cute_profile.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import marshal
1212

1313
from python_toolbox import misc_tools
14-
from python_toolbox.third_party.decorator import decorator
14+
from python_toolbox.third_party.decorator import decorator as decorator_
1515

1616
from . import base_profile
1717
from . import profile_handling
@@ -85,8 +85,7 @@ def f(x, y):
8585

8686
def decorator(function):
8787

88-
@functools.wraps(function)
89-
def inner(*args, **kwargs):
88+
def inner(function, *args, **kwargs):
9089

9190
if decorated_function.condition is not None:
9291

@@ -121,7 +120,7 @@ def inner(*args, **kwargs):
121120

122121
return decorated_function.original_function(*args, **kwargs)
123122

124-
decorated_function = inner
123+
decorated_function = decorator_(inner, function)
125124

126125
decorated_function.original_function = function
127126
decorated_function.profiling_on = None

0 commit comments

Comments
 (0)