dotfiles/.emacs.d/snippets/python-mode/dec
2017-12-21 17:29:29 +01:00

14 lines
229 B
Plaintext

# -*- mode: snippet -*-
# name: dec
# key: dec
# group : definitions
# --
def ${1:decorator}(func):
$2
def _$1(*args, **kwargs):
$3
ret = func(*args, **kwargs)
$4
return ret
return _$1