execfile should call PyErr_SetFromErrnoWithFilename instead of
simply PyErr_SetFromErrno This closes bug 599163.
This commit is contained in:
parent
80a04a4894
commit
4c0134248c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue