1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# -*- mode: snippet -*- # name: decorate # uuid: # key: decorate # condition: t # -- def wrap(inner): @wraps(inner) def wrapped(*args, **kwargs): ret = inner(*args, **kwargs) return ret return wrapped return wrap