Commit 39585442 authored by Peter Schneider-Kamp's avatar Peter Schneider-Kamp

execfile should call PyErr_SetFromErrnoWithFilename instead of

simply PyErr_SetFromErrno

This closes bug 599163.
parent 05be93a1
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment