summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-04-19 22:35:53 (GMT)
committerGitHub <noreply@github.com>2021-04-19 22:35:53 (GMT)
commit7a041162468b83f6cad667b78ed5c786286aed2b (patch)
treeed9e0d1622622b1c37940d312de7d6e679bc8db2 /Python/pythonrun.c
parent4f9ffa8f9c7c31ad9480dfe99e84089017127ec9 (diff)
downloadcpython-7a041162468b83f6cad667b78ed5c786286aed2b.zip
cpython-7a041162468b83f6cad667b78ed5c786286aed2b.tar.gz
cpython-7a041162468b83f6cad667b78ed5c786286aed2b.tar.bz2
bpo-25460: Surround suggestions by quotes (GH-25473)
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 6f84cab..8bd3134 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -956,10 +956,10 @@ print_exception(PyObject *f, PyObject *value)
PyObject* suggestions = _Py_Offer_Suggestions(value);
if (suggestions) {
// Add a trailer ". Did you mean: (...)?"
- err = PyFile_WriteString(". Did you mean: ", f);
+ err = PyFile_WriteString(". Did you mean: '", f);
if (err == 0) {
err = PyFile_WriteObject(suggestions, f, Py_PRINT_RAW);
- err += PyFile_WriteString("?", f);
+ err += PyFile_WriteString("'?", f);
}
Py_DECREF(suggestions);
} else if (PyErr_Occurred()) {