Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions decorators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ previous decorator and make a little bit more usable program:

def a_new_decorator(a_func):

def wrapTheFunction():
def wrap_the_function():
print("I am doing some boring work before executing a_func()")

a_func()

print("I am doing some boring work after executing a_func()")

return wrapTheFunction
return wrap_the_function

def a_function_requiring_decoration():
print("I am the function which needs some decoration to remove my foul smell")
Expand Down