[Python-checkins] python/dist/src/Python newcompile.c,1.1.2.20,1.1.2.21

nascheme@users.sourceforge.net nascheme@users.sourceforge.net
Mon, 24 Mar 2003 15:29:27 -0800


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

Modified Files:
      Tag: ast-branch
	newcompile.c 
Log Message:
Don't generate code for asserts if Py_OptimizeFlag is true.


Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.20
retrieving revision 1.1.2.21
diff -C2 -d -r1.1.2.20 -r1.1.2.21
*** newcompile.c	24 Mar 2003 23:26:07 -0000	1.1.2.20
--- newcompile.c	24 Mar 2003 23:29:23 -0000	1.1.2.21
***************
*** 814,817 ****
--- 814,819 ----
  	int end;
  
+ 	if (Py_OptimizeFlag)
+ 		return 0;
  	if (assertion_error == NULL) {
  		assertion_error = PyString_FromString("AssertionError");