[Python-checkins] python/dist/src/Python compile.c,2.251,2.252

loewis@users.sourceforge.net loewis@users.sourceforge.net
Wed, 07 Aug 2002 08:19:00 -0700


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

Modified Files:
	compile.c 
Log Message:
Use Py_FatalError instead of abort.


Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.251
retrieving revision 2.252
diff -C2 -d -r2.251 -r2.252
*** compile.c	7 Aug 2002 12:33:18 -0000	2.251
--- compile.c	7 Aug 2002 15:18:57 -0000	2.252
***************
*** 1187,1191 ****
  {
  #ifndef Py_USING_UNICODE
! 	abort();
  #else
  	PyObject *u, *v;
--- 1187,1192 ----
  {
  #ifndef Py_USING_UNICODE
! 	Py_FatalError("decode_utf8 should not be called in this build.");
!         return NULL;
  #else
  	PyObject *u, *v;
***************
*** 1320,1324 ****
  			/* This should not happen - we never see any other
  			   encoding. */
! 			abort();
  #else
  			PyObject* u = PyUnicode_DecodeUTF8(s, len, NULL);
--- 1321,1325 ----
  			/* This should not happen - we never see any other
  			   encoding. */
! 			Py_FatalError("cannot deal with encodings in this build.");
  #else
  			PyObject* u = PyUnicode_DecodeUTF8(s, len, NULL);