]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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 08:18:32 +0000 (10:18 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Oct 2025 08:18:32 +0000 (08:18 +0000)
commit08738ce52109a5a1ee9baaa59b3e2263442be99a
tree1a4addb0edd96242d4986262ad0d083599c309e4
parent5d34830f4dd00bc92da3d3a28506ff0fb1a8368e
[3.14] gh-139783: Fix inspect.getsourcelines() for the case when a decorator is followed by a comment or an empty line (GH-139836) (GH-139889)

(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]