Intro-to-Jinja-tpl-v2/decorators.py

6 lines
151 B
Python
Raw Permalink Normal View History

def do_twice(func):
2024-02-13 14:48:42 +00:00
def wrapper_do_twice(*args, **kwargs):
func(*args, **kwargs)
func(*args, **kwargs)
return wrapper_do_twice