summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index acb1330..a0005b3 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1107,16 +1107,9 @@ print_exception_suggestions(struct exception_print_context *ctx,
PyObject *f = ctx->file;
PyObject *suggestions = _Py_Offer_Suggestions(value);
if (suggestions) {
- // Add a trailer ". Did you mean: (...)?"
- if (PyFile_WriteString(". Did you mean: '", f) < 0) {
- goto error;
- }
if (PyFile_WriteObject(suggestions, f, Py_PRINT_RAW) < 0) {
goto error;
}
- if (PyFile_WriteString("'?", f) < 0) {
- goto error;
- }
Py_DECREF(suggestions);
}
else if (PyErr_Occurred()) {