diff Python/bltinmodule.c @ 25046:434bc1dea4f8 legacy-trunk

execfile should call PyErr_SetFromErrnoWithFilename instead of simply PyErr_SetFromErrno This closes bug 599163.
author Peter Schneider-Kamp <nowonder@nowonder.de>
date Tue, 27 Aug 2002 16:58:00 +0000
parents a3ebd1233c00
children dc4a0336a2a3
line wrap: on
line diff
--- a/Python/bltinmodule.c	Tue Aug 27 16:46:06 2002 +0000
+++ b/Python/bltinmodule.c	Tue Aug 27 16:58:00 2002 +0000
@@ -553,7 +553,7 @@
         }
 
 	if (!exists) {
-		PyErr_SetFromErrno(PyExc_IOError);
+		PyErr_SetFromErrnoWithFilename(PyExc_IOError, filename);
 		return NULL;
 	}
 	cf.cf_flags = 0;