Kaydet (Commit) 070fe168 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

backport nowonder's checkin of

    revision 2.265 of bltinmodule.c

date: 2002/08/27 16:58:00;  author: nowonder;  state: Exp;  lines: +1 -1

execfile should call PyErr_SetFromErrnoWithFilename instead of
simply PyErr_SetFromErrno

This closes bug 599163.
üst a748f064
...@@ -611,7 +611,7 @@ builtin_execfile(PyObject *self, PyObject *args) ...@@ -611,7 +611,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;
......
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