diff Python/bltinmodule.c @ 25383:e53787b1ad85 2.2

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.
author Michael W. Hudson <mwh@python.net>
date Tue, 24 Sep 2002 11:23:05 +0000
parents 0b089c8ac077
children 29d40eae8736
line wrap: on
line diff
--- a/Python/bltinmodule.c	Tue Sep 24 11:22:28 2002 +0000
+++ b/Python/bltinmodule.c	Tue Sep 24 11:23:05 2002 +0000
@@ -611,7 +611,7 @@
         }
 
 	if (!exists) {
-		PyErr_SetFromErrno(PyExc_IOError);
+		PyErr_SetFromErrnoWithFilename(PyExc_IOError, filename);
 		return NULL;
 	}
 	cf.cf_flags = 0;