From: Michael W. Hudson Date: Tue, 24 Sep 2002 11:23:05 +0000 (+0000) Subject: backport nowonder's checkin of X-Git-Tag: v2.2.2b1~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=070fe1680a1d57ee4ea611b6b96370fa7eaf86ad;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index d002d5895406..4601c49c486c 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -611,7 +611,7 @@ builtin_execfile(PyObject *self, PyObject *args) } if (!exists) { - PyErr_SetFromErrno(PyExc_IOError); + PyErr_SetFromErrnoWithFilename(PyExc_IOError, filename); return NULL; } cf.cf_flags = 0;