mirror of
https://github.com/python/cpython
synced 2026-09-28 03:33:18 +03:00
[3.13] gh-103956: Fix trace output in case of missing source line (GH-103958) (GH-118834)
Print only filename with lineno if linecache.getline() returns an empty string.
(cherry picked from commit 7c87ce777b)
Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
This commit is contained in:
parent
d86b494117
commit
c4b853f2a5
3 changed files with 38 additions and 4 deletions
|
|
@ -0,0 +1 @@
|
|||
Fix lack of newline characters in :mod:`trace` module output when line tracing is enabled but source code line for current frame is not available.
|
||||
Loading…
Add table
Add a link
Reference in a new issue