From 4c0134248c18403ee5f091ac36e5d16cc077bbfa Mon Sep 17 00:00:00 2001 From: Peter Schneider-Kamp Date: Tue, 27 Aug 2002 16:58:00 +0000 Subject: [PATCH] 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 660abeb039..2387deb667 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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; -- 2.40.0