commit | 4c0134248c18403ee5f091ac36e5d16cc077bbfa | [log] [tgz] |
---|---|---|
author | Peter Schneider-Kamp <nowonder@nowonder.de> | Tue Aug 27 16:58:00 2002 +0000 |
committer | Peter Schneider-Kamp <nowonder@nowonder.de> | Tue Aug 27 16:58:00 2002 +0000 |
tree | 9f228678861c35dd5374570d8db54e70a3e17c6b | |
parent | 80a04a4894fea84c76e316a6cf75c2618b03f0b1 [diff] |
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 660abeb..2387deb 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -553,7 +553,7 @@ } if (!exists) { - PyErr_SetFromErrno(PyExc_IOError); + PyErr_SetFromErrnoWithFilename(PyExc_IOError, filename); return NULL; } cf.cf_flags = 0;