Skip to content

Commit 05c1e1e

Browse files
committed
DR updates, first round
1 parent 87292fa commit 05c1e1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python-callable-instances/timing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, repetitions=1):
1818

1919

2020
def __call__(self, func):
21-
def _timer(*args, **kwargs):
21+
def timer(*args, **kwargs):
2222
result = None
2323
total_time = 0
2424
print(f"Running {func.__name__}() {self.repetitions} times")
@@ -34,4 +34,4 @@ def _timer(*args, **kwargs):
3434
)
3535
return result
3636

37-
return _timer
37+
return timer

0 commit comments

Comments
 (0)