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

7 lines
238 B
Text
Raw Permalink Normal View History

2014-08-21 00:23:56 +02: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)