Skip to content

Commit fd9a5f4

Browse files
committed
-
1 parent 7b3908f commit fd9a5f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python_toolbox/cute_profile/cute_profile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def f(x, y):
8585

8686
def decorator(function):
8787

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

9091
if decorated_function.condition is not None:
9192

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

121122
return decorated_function.original_function(*args, **kwargs)
122123

123-
decorated_function = decorator(inner, function)
124+
decorated_function = inner
124125

125126
decorated_function.original_function = function
126127
decorated_function.profiling_on = None

0 commit comments

Comments
 (0)