[Python-checkins] CVS: python/dist/src/Lib warnings.py,1.5,1.6

Guido van Rossum gvanrossum@users.sourceforge.net
Wed, 28 Feb 2001 14:26:38 -0800


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

Modified Files:
	warnings.py 
Log Message:
Move a comment around to where it belongs (the code had alrady been
moved).


Index: warnings.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/warnings.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** warnings.py	2001/02/28 21:43:40	1.5
--- warnings.py	2001/02/28 22:26:36	1.6
***************
*** 33,37 ****
          if not filename:
              filename = module
-     # Quick test for common case
      registry = globals.setdefault("__warningregistry__", {})
      warn_explicit(message, category, filename, lineno, module, registry)
--- 33,36 ----
***************
*** 46,49 ****
--- 45,49 ----
          registry = {}
      key = (message, category, lineno)
+     # Quick test for common case
      if registry.get(key):
          return