]> git.eshelyaron.com Git - emacs.git/commit
Fix python-shell-buffer-substring when retrieving a single statement
authorkobarity <kobarity@gmail.com>
Thu, 22 Dec 2022 14:08:40 +0000 (23:08 +0900)
committerEli Zaretskii <eliz@gnu.org>
Sat, 31 Dec 2022 08:14:28 +0000 (10:14 +0200)
commiteee2aeca251a6fb3db09cfeeb3ae3aaf48db02fc
tree3643b7b2de10f7ce10e298c65cdc90dbe6bc7e6d
parentbfdad6c4e5ce95025f1761a404b762589d126505
Fix python-shell-buffer-substring when retrieving a single statement

* lisp/progmodes/python.el (python-shell-buffer-substring): Do not add
"if True:" line when retrieving a single statement.
(python-shell-send-region): Add a reference to
`python-shell-buffer-substring' in docstring.
* test/lisp/progmodes/python-tests.el (python-shell-buffer-substring-13)
(python-shell-buffer-substring-14, python-shell-buffer-substring-15)
(python-shell-buffer-substring-16, python-shell-buffer-substring-17):
New tests. (Bug#60142)
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el