Skip to content

Commit 941c4d1

Browse files
BlendingJakeJacob Morris
authored andcommitted
make it more clear that the argument is callable
1 parent a7727dc commit 941c4d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pytimer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,9 @@ def time(self, block, *args, reps=10, runs_per_rep=10, split_message="", callabl
592592

593593
if callable(block):
594594
if not split_message: # if no message was passed in
595-
arguments = [i.__name__ if callable(i) and callable_args else str(i) for i in args]
595+
arguments = [i.__name__ + "()" if callable(i) and callable_args else str(i) for i in args]
596596
for key in kwargs:
597-
value = kwargs[key].__name__ if callable(kwargs[key]) and callable_args else kwargs[key]
597+
value = kwargs[key].__name__ + "()" if callable(kwargs[key]) and callable_args else kwargs[key]
598598
arguments.append("{}={}".format(key, value))
599599

600600
split_message = "{}({}) - Evaluate Function ({} {})".format(block.__name__, ", ".join(arguments),

0 commit comments

Comments
 (0)