* Inline pymain_run_file() and pymain_open_filename() into pymain_run_filename() * Created pymain_run_stdin() which is pymain_run_filename() with filename=NULL * Rename pymain_run_filename() to pymain_run_file()
| PyErr_SetFromErrnoWithFilename(PyExc_OSError, | ||
| startup); | ||
| PyErr_Print(); | ||
| PyErr_Clear(); |
There was a problem hiding this comment.
There's no need to call PyErr_Clear() after PyErr_Print().
There was a problem hiding this comment.
This code is 11 years old, I didn't touch it. Please open a new issue if you want to fix it.
See commit e69a08e.
There was a problem hiding this comment.
This has been fixed in 8b58468.
pymain_run_filename()
filename=NULL
https://bugs.python.org/issue34170