execfile should call PyErr_SetFromErrnoWithFilename instead of

simply PyErr_SetFromErrno

This closes bug 599163.
This commit is contained in:
Peter Schneider-Kamp 2002-08-27 16:58:00 +00:00
parent 80a04a4894
commit 4c0134248c

View file

@ -553,7 +553,7 @@ builtin_execfile(PyObject *self, PyObject *args)
} }
if (!exists) { if (!exists) {
PyErr_SetFromErrno(PyExc_IOError); PyErr_SetFromErrnoWithFilename(PyExc_IOError, filename);
return NULL; return NULL;
} }
cf.cf_flags = 0; cf.cf_flags = 0;