Skip to content

Commit

Permalink
Use *args and **kwargs in profile entry method
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Foster committed Apr 2, 2012
1 parent 797c9d5 commit 1a47144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gevent_profiler/__init__.py
Expand Up @@ -302,7 +302,7 @@ def detach():
_trace_began_at = None
curr_state = None

def profile(func, args=[], kwargs={}):
def profile(func, *args, **kwargs):
"""
Takes a function and the arguments to pass to that function and runs it
with profiling enabled. On completion of that function, the profiling
Expand Down

0 comments on commit 1a47144

Please sign in to comment.