[Python-checkins] python/dist/src/Lib statcache.py,1.13,1.14 xmllib.py,1.28,1.29

nnorwitz@sourceforge.net nnorwitz@sourceforge.net
Tue, 09 Apr 2002 19:04:02 -0700


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

Modified Files:
	statcache.py xmllib.py 
Log Message:
Add deprecation warnings for modules as documented

Index: statcache.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/statcache.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** statcache.py	9 Apr 2002 18:12:58 -0000	1.13
--- statcache.py	10 Apr 2002 02:04:00 -0000	1.14
***************
*** 4,7 ****
--- 4,12 ----
  """
  
+ import warnings
+ warnings.warn("The statcache module is obsolete.  Use os.stat() instead.",
+               DeprecationWarning)
+ del warnings
+ 
  import os as _os
  from stat import *

Index: xmllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xmllib.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** xmllib.py	14 Mar 2001 17:03:30 -0000	1.28
--- xmllib.py	10 Apr 2002 02:04:00 -0000	1.29
***************
*** 6,9 ****
--- 6,13 ----
  import string
  
+ import warnings
+ warnings.warn("The xmllib module is obsolete.  Use xml.sax instead.",
+               DeprecationWarning)
+ del warnings
  
  version = '0.3'