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

6 lines
151 B
Python

def do_twice(func):
def wrapper_do_twice(*args, **kwargs):
func(*args, **kwargs)
func(*args, **kwargs)
return wrapper_do_twice