about summary refs log tree commit diff
path: root/users/glittershark/emacs.d/snippets/python-mode/decorate
blob: 9448b45c9623ae0cc81ed6bf406aaa9f3c7df928 (plain) (blame)
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