[Python-checkins] python/dist/src/Python bltinmodule.c,2.246.4.4,2.246.4.5

mwh@users.sourceforge.net mwh@users.sourceforge.net
Tue, 24 Sep 2002 04:23:07 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv5724

Modified Files:
      Tag: release22-maint
	bltinmodule.c 
Log Message:
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.


Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.246.4.4
retrieving revision 2.246.4.5
diff -C2 -d -r2.246.4.4 -r2.246.4.5
*** bltinmodule.c	30 Apr 2002 04:05:33 -0000	2.246.4.4
--- bltinmodule.c	24 Sep 2002 11:23:05 -0000	2.246.4.5
***************
*** 612,616 ****
  
  	if (!exists) {
! 		PyErr_SetFromErrno(PyExc_IOError);
  		return NULL;
  	}
--- 612,616 ----
  
  	if (!exists) {
! 		PyErr_SetFromErrnoWithFilename(PyExc_IOError, filename);
  		return NULL;
  	}