Created
April 28, 2016 15:40
-
-
Save bzamecnik/dc9ed18f15fd199b574e24140c426af1 to your computer and use it in GitHub Desktop.
You Shall Not Pass!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gandalf(func): | |
def inner(*args, **kwargs): | |
raise ValueError("You shall not pass!") | |
return func(*args, **kwargs) | |
return inner | |
@gandalf | |
def balrog(): | |
pass | |
balrog() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment