]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-103956: Fix `trace` output in case of missing source line (GH-103958)
authorRadislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
Thu, 9 May 2024 12:09:44 +0000 (15:09 +0300)
committerGitHub <noreply@github.com>
Thu, 9 May 2024 12:09:44 +0000 (12:09 +0000)
commit7c87ce777b3fd9055b118a58ec8614901ecb45e9
tree286882440da501f05fe51de328f3c1c50f90a2f5
parentda090f1658e72485b201507653f6d673f3e39c86
gh-103956: Fix `trace` output in case of missing source line (GH-103958)

Print only filename with lineno if linecache.getline() returns an empty string.
Lib/test/test_trace.py
Lib/trace.py
Misc/NEWS.d/next/Library/2023-04-28-09-54-15.gh-issue-103956.EyLDPS.rst [new file with mode: 0644]