diff options
author | Peter Schneider-Kamp <nowonder@nowonder.de> | 2002-08-27 16:58:00 (GMT) |
---|---|---|
committer | Peter Schneider-Kamp <nowonder@nowonder.de> | 2002-08-27 16:58:00 (GMT) |
commit | 4c0134248c18403ee5f091ac36e5d16cc077bbfa (patch) | |
tree | 9f228678861c35dd5374570d8db54e70a3e17c6b /Python/bltinmodule.c | |
parent | 80a04a4894fea84c76e316a6cf75c2618b03f0b1 (diff) | |
download | cpython-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.c | 2 |
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; |