diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2021-11-29 10:11:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 10:11:48 (GMT) |
commit | 5b6aa6ce20b5b3b45dec2ebd6355e248cdf2fbcc (patch) | |
tree | 1faef6bab1868c28e80bfb790a037cdbca3b3335 /Python/pythonrun.c | |
parent | 209cec8a2a2e845df5af764a9171af05a2a4c8e3 (diff) | |
download | cpython-5b6aa6ce20b5b3b45dec2ebd6355e248cdf2fbcc.zip cpython-5b6aa6ce20b5b3b45dec2ebd6355e248cdf2fbcc.tar.gz cpython-5b6aa6ce20b5b3b45dec2ebd6355e248cdf2fbcc.tar.bz2 |
bpo-45614: Fix traceback display for exceptions with invalid module name (GH-29726) (GH-29827)
(cherry picked from commit 4dfae6f38e1720ddafcdd68043e476ecb41cb4d5)
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 50c59b6..364101e 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -903,7 +903,7 @@ print_exception(PyObject *f, PyObject *value) { Py_XDECREF(modulename); PyErr_Clear(); - err = PyFile_WriteString("<unknown>", f); + err = PyFile_WriteString("<unknown>.", f); } else { if (!_PyUnicode_EqualToASCIIId(modulename, &PyId_builtins)) |