This file contains hidden or 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 enable_british_english(func): | |
""" | |
A simple decorator allowing users to provide British english | |
arguments to functions and methods. | |
Example: | |
@enable_british_english | |
def favourite(color=None): | |
print(f"my favourite colour is {color}") |