From 070fe1680a1d57ee4ea611b6b96370fa7eaf86ad Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Tue, 24 Sep 2002 11:23:05 +0000 Subject: [PATCH] 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. --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3