gh-103956: fix `trace` output in case of missing source line by chgnrdv · Pull Request #103958 · python/cpython
check if call to `linecache.getline` returns non-empty string otherwise print only filename with lineno
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
…ythonGH-103958) Print only filename with lineno if linecache.getline() returns an empty string. (cherry picked from commit 7c87ce7) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
…ythonGH-103958) Print only filename with lineno if linecache.getline() returns an empty string. (cherry picked from commit 7c87ce7) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
…ythonGH-103958) Print only filename with lineno if linecache.getline() returns an empty string. (cherry picked from commit 7c87ce7) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
serhiy-storchaka pushed a commit that referenced this pull request
serhiy-storchaka pushed a commit that referenced this pull request
SonicField pushed a commit to SonicField/cpython that referenced this pull request
…ythonGH-103958) Print only filename with lineno if linecache.getline() returns an empty string.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters