legacy-dotfiles/emacs/.emacs.d/snippets/python-mode/defm_empty
2014-08-21 00:23:56 +02:00

7 lines
No EOL
238 B
Text

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