my-emacs-d/elpa/yasnippet-20161022.646/snippets/python-mode/dec

14 lines
229 B
Plaintext
Raw Normal View History

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