tvl-depot/users/glittershark/emacs.d/snippets/python-mode/decorate

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
242 B
Text
Raw Normal View History

# -*- 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