summaryrefslogtreecommitdiffstats
path: root/.emacs.d/snippets/python-mode/form_valid_with_return
blob: fac23bc708a5b0b45d4d389477395c8ccc0ba449 (plain)
1
2
3
4
5
6
7
8
# -*- mode: snippet -*-
# name: form_valid with return
# key: formvalid
# --
def form_valid(self, form):
    rv = super(`(let ((name (python-info-current-defun))) (substring name 0 (cl-position ?. name)))`, self).form_valid(form)
    $0
    return rv