]> granicus.if.org Git - python/commitdiff
Add deprecation warnings for modules as documented
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 10 Apr 2002 02:04:00 +0000 (02:04 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 10 Apr 2002 02:04:00 +0000 (02:04 +0000)
Lib/statcache.py
Lib/xmllib.py

index 47b79da11c6c1af5b29869d94ea1ccf9a5e2def9..cfc812bd752499386f3956c9fc5e04e857cf1cc3 100644 (file)
@@ -3,6 +3,11 @@
 There are functions to reset the cache or to selectively remove items.
 """
 
+import warnings
+warnings.warn("The statcache module is obsolete.  Use os.stat() instead.",
+              DeprecationWarning)
+del warnings
+
 import os as _os
 from stat import *
 
index e8210e6177f00d7953c905d3db7b2831b9d87eb0..445ab13945698dd7791fa477dcdd72773e184b27 100644 (file)
@@ -5,6 +5,10 @@
 import re
 import string
 
+import warnings
+warnings.warn("The xmllib module is obsolete.  Use xml.sax instead.",
+              DeprecationWarning)
+del warnings
 
 version = '0.3'