]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-139783: Fix inspect.getsourcelines() for the case when a decorator is follo...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 10 Oct 2025 21:26:36 +0000 (23:26 +0200)
committerThomas Wouters <thomas@python.org>
Tue, 14 Oct 2025 13:47:20 +0000 (15:47 +0200)
commitbc2c8d748cf059712e9d513e05ea13e13844150d
tree5bdbc3da7169bc81aaa622ad106b43bd4cd3d1cb
parenta15ae614deb58f78f9f4aa11ed18a0afc6a9df7d
[3.13] gh-139783: Fix inspect.getsourcelines() for the case when a decorator is followed by a comment or an empty line (GH-139836) (GH-139890)

(cherry picked from commit f4104f5d74b99712253fceb39a4460ee3f7a281c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/inspect.py
Lib/test/test_inspect/inspect_fodder2.py
Lib/test/test_inspect/test_inspect.py
Misc/NEWS.d/next/Library/2025-10-09-13-48-28.gh-issue-139783.__NUgo.rst [new file with mode: 0644]