1
0
Fork 0
emacs-config/oni-python/snippets/python-mode/defm_empty

7 lines
238 B
Text
Raw Permalink Normal View History

2019-08-28 09:06:55 +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)