mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	New version from Jim: don't call Py_FatalError() when initialization fails.
This commit is contained in:
		
							parent
							
								
									42120eaca5
								
							
						
					
					
						commit
						17d53ecd8b
					
				
					 1 changed files with 2 additions and 5 deletions
				
			
		| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * $Id$
 | 
					 * cStringIO.c,v 1.29 1999/06/15 14:10:27 jim Exp
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
 * Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.  
 | 
					 * Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.  
 | 
				
			||||||
 * All rights reserved.
 | 
					 * All rights reserved.
 | 
				
			||||||
| 
						 | 
					@ -78,7 +78,7 @@ static char cStringIO_module_documentation[] =
 | 
				
			||||||
"If someone else wants to provide a more complete implementation,\n"
 | 
					"If someone else wants to provide a more complete implementation,\n"
 | 
				
			||||||
"go for it. :-)  \n"
 | 
					"go for it. :-)  \n"
 | 
				
			||||||
"\n"
 | 
					"\n"
 | 
				
			||||||
"$Id$\n"
 | 
					"cStringIO.c,v 1.29 1999/06/15 14:10:27 jim Exp\n"
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "Python.h"
 | 
					#include "Python.h"
 | 
				
			||||||
| 
						 | 
					@ -658,7 +658,4 @@ initcStringIO() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /* Maybe make certain warnings go away */
 | 
					  /* Maybe make certain warnings go away */
 | 
				
			||||||
  if(0) PycString_IMPORT;
 | 
					  if(0) PycString_IMPORT;
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  /* Check for errors */
 | 
					 | 
				
			||||||
  if (PyErr_Occurred()) Py_FatalError("can't initialize module cStringIO");
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue