[Python-checkins] python/dist/src/Lib sets.py,1.46,1.47

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Mon Sep 8 13:16:38 EDT 2003


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

Modified Files:
	sets.py 
Log Message:
Set the warnings stacklevel to two.

Index: sets.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sets.py,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** sets.py	17 Aug 2003 08:34:09 -0000	1.46
--- sets.py	8 Sep 2003 19:16:36 -0000	1.47
***************
*** 503,508 ****
          import warnings
          warnings.warn("The update() method deprecated; "
!                       "Use union_update() instead",
!                       DeprecationWarning)
          self._update(iterable)
  
--- 503,508 ----
          import warnings
          warnings.warn("The update() method deprecated; "
!                       "Use union_update() instead.",
!                       DeprecationWarning, 2)
          self._update(iterable)
  





More information about the Python-checkins mailing list