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
1 changed files with 1 additions and 1 deletions

View File

@ -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;