]> git.eshelyaron.com Git - emacs.git/commit
Don't misindent 'else:' after 'if re.match:' in Python
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 8 Mar 2023 20:41:23 +0000 (22:41 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 8 Mar 2023 20:48:33 +0000 (22:48 +0200)
commit34c14430e9d070ffc98527fc95677dd5c5758536
tree3c85789c30e85ffdb324c46378d5c3151f270c95
parent8a2a554192a936257e88f12b4dfbd4f923d135f3
Don't misindent 'else:' after 'if re.match:' in Python

* lisp/progmodes/python.el
(python-info-dedenter-opening-block-positions): Check that the
supposed block start is not a method call (bug#62031).

* test/lisp/progmodes/python-tests.el (python-indent-after-re-match):
New test.

Co-authored-by: Lele Gaifax <lele@metapensiero.it>
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el