Skip to content

Commit 2a263c8

Browse files
committed
Closure
1 parent ab8cc16 commit 2a263c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,10 @@ from functools import wraps
522522

523523
def debug(func):
524524
@wraps(func) # Needed for metadata copying (func name, ...).
525-
def wrapper(*args, **kwargs):
525+
def out(*args, **kwargs):
526526
print(func.__name__)
527527
return func(*args, **kwargs)
528-
return wrapper
528+
return out
529529

530530
@debug
531531
def add(x, y):

0 commit comments

Comments
 (0)