[Python-checkins] python/dist/src/Python compile.c,2.253,2.254

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Sun, 11 Aug 2002 07:06:17 -0700


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

Modified Files:
	compile.c 
Log Message:
Reset errno to zero after calling PyErr_Warn().  It can potentially do
a lot of work, including I/O (e.g. to import warnings.py), which might
affect errno.


Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.253
retrieving revision 2.254
diff -C2 -d -r2.253 -r2.254
*** compile.c	11 Aug 2002 04:24:12 -0000	2.253
--- compile.c	11 Aug 2002 14:06:15 -0000	2.254
***************
*** 1163,1166 ****
--- 1163,1167 ----
  				       "in Python 2.4 and up") < 0)
  				return NULL;
+ 			errno = 0; /* Might be changed by PyErr_Warn() */
  		}
  	}