lotsa changes and inclusion of elpy
[emacs.git] / .emacs.d / elisp / yasnippet / snippets / python-mode / dec
1 # -*- mode: snippet -*-
2 # name: dec
3 # key: dec
4 # group : definitions
5 # --
6 def ${1:decorator}(func):
7 $2
8 def _$1(*args, **kwargs):
9 $3
10 ret = func(*args, **kwargs)
11 $4
12 return ret
13
14 return _$1