Skip to content

Commit 165d99c

Browse files
authored
remove functools
1 parent fdb9fb3 commit 165d99c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Week04/decorators_rafet_taskin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import tracemalloc
22
import time
3-
import functools
43

54
def performance(func):
65
performance.counter = 0
76
performance.total_time = 0.0
87
performance.total_mem = 0.0
9-
10-
@functools.wraps(func)
8+
119
def wrapper(*args, **kwargs):
1210
tracemalloc.start()
1311
start_time = time.time()

0 commit comments

Comments
 (0)