]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-32381: pymain_run_file() uses PySys_FormatStderr() (GH-23778)
authorVictor Stinner <vstinner@python.org>
Tue, 15 Dec 2020 15:25:27 +0000 (16:25 +0100)
committerGitHub <noreply@github.com>
Tue, 15 Dec 2020 15:25:27 +0000 (16:25 +0100)
commitceb420251c1d635520049fbb7b5269a73d63fb58
treef42f9ef03f9e783bff9f9b13d52819704e1c8b65
parentf7049b5fb680c774e4950d10be62859a749f4e79
bpo-32381: pymain_run_file() uses PySys_FormatStderr() (GH-23778)

If config->run_filename doesn't exist, log the error into sys.stderr
using "%R" format, to escape properly unencodable characters (usually
with backslashreplace).
Modules/main.c