[Python-checkins] CVS: python/dist/src/Objects complexobject.c,2.40,2.41

Guido van Rossum gvanrossum@users.sourceforge.net
Mon, 03 Sep 2001 20:50:49 -0700


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

Modified Files:
	complexobject.c 
Log Message:
PEP 238 documented -Qwarn as warning only for classic int or long
division, and this makes sense.  Add -Qwarnall to warn for all
classic divisions, as required by the fixdiv.py tool.


Index: complexobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/complexobject.c,v
retrieving revision 2.40
retrieving revision 2.41
diff -C2 -d -r2.40 -r2.41
*** complexobject.c	2001/08/31 17:40:15	2.40
--- complexobject.c	2001/09/04 03:50:47	2.41
***************
*** 378,382 ****
  	Py_complex quot;
  
! 	if (Py_DivisionWarningFlag &&
  	    PyErr_Warn(PyExc_DeprecationWarning,
  		       "classic complex division") < 0)
--- 378,382 ----
  	Py_complex quot;
  
! 	if (Py_DivisionWarningFlag >= 2 &&
  	    PyErr_Warn(PyExc_DeprecationWarning,
  		       "classic complex division") < 0)