dotfiles/emacs/.emacs.d/snippets/python-mode/defm_empty

7 lines
238 B
Text
Raw Normal View History

2016-11-24 21:41:10 +01:00
# -*- coding: utf-8 -*-
# name: Empty Defmethod
# key: defm
# --
def ${1:name}(self, *args, **kwargs):
'''$2'''
return super(${3:`(progn (re-search-backward "^[ \t]*class \\(.+\\)(") (match-string 1)))`}, self).$1(*args, **kwargs)