summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorPeter Schneider-Kamp <nowonder@nowonder.de>2002-08-27 16:58:00 (GMT)
committerPeter Schneider-Kamp <nowonder@nowonder.de>2002-08-27 16:58:00 (GMT)
commit4c0134248c18403ee5f091ac36e5d16cc077bbfa (patch)
tree9f228678861c35dd5374570d8db54e70a3e17c6b /Python/bltinmodule.c
parent80a04a4894fea84c76e316a6cf75c2618b03f0b1 (diff)
downloadcpython-4c0134248c18403ee5f091ac36e5d16cc077bbfa.zip
cpython-4c0134248c18403ee5f091ac36e5d16cc077bbfa.tar.gz
cpython-4c0134248c18403ee5f091ac36e5d16cc077bbfa.tar.bz2
execfile should call PyErr_SetFromErrnoWithFilename instead of
simply PyErr_SetFromErrno This closes bug 599163.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 660abeb..2387deb 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;