about summary refs log tree commit diff
path: root/users/grfn/emacs.d/snippets/python-mode/decorate
blob: 4f96748572a2ba9f98b076fe63eb6a706ee6b11d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- mode: snippet -*-
# name: decorate
# uuid: decorate
# key: decorate
# condition: t
# --
def wrap(inner):
    @wraps(inner)
    def wrapped(*args, **kwargs):
        ret = inner(*args, **kwargs)
        return ret

    return wrapped

return wrap