From: Peter Schneider-Kamp Date: Tue, 27 Aug 2002 16:58:00 +0000 (+0000) Subject: execfile should call PyErr_SetFromErrnoWithFilename instead of X-Git-Tag: v2.3c1~4279 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c0134248c18403ee5f091ac36e5d16cc077bbfa;p=python execfile should call PyErr_SetFromErrnoWithFilename instead of simply PyErr_SetFromErrno This closes bug 599163. --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 660abeb039..2387deb667 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -553,7 +553,7 @@ builtin_execfile(PyObject *self, PyObject *args) } if (!exists) { - PyErr_SetFromErrno(PyExc_IOError); + PyErr_SetFromErrnoWithFilename(PyExc_IOError, filename); return NULL; } cf.cf_flags = 0;