File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
python_toolbox/cute_profile Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1111import marshal
1212
1313from 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
1616from . import base_profile
1717from . 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
You can’t perform that action at this time.
0 commit comments