diff options
| author | Michael W. Hudson <mwh@python.net> | 2002-09-24 11:23:05 (GMT) |
|---|---|---|
| committer | Michael W. Hudson <mwh@python.net> | 2002-09-24 11:23:05 (GMT) |
| commit | 070fe1680a1d57ee4ea611b6b96370fa7eaf86ad (patch) | |
| tree | fca5d816c40ebbdd1ce90ac1088ce8cd11940ed1 /Python | |
| parent | a748f064718c709e849ce7e239f0f5ed90e59abd (diff) | |
| download | cpython-070fe1680a1d57ee4ea611b6b96370fa7eaf86ad.zip cpython-070fe1680a1d57ee4ea611b6b96370fa7eaf86ad.tar.gz cpython-070fe1680a1d57ee4ea611b6b96370fa7eaf86ad.tar.bz2 | |
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.
Diffstat (limited to 'Python')
| -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 d002d58..4601c49 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; |
