From: Neal Norwitz Date: Wed, 10 Apr 2002 02:04:00 +0000 (+0000) Subject: Add deprecation warnings for modules as documented X-Git-Tag: v2.3c1~6070 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab3b9eb4770081b210ba1f4d878c80f2e5815bf6;p=thirdparty%2FPython%2Fcpython.git Add deprecation warnings for modules as documented --- diff --git a/Lib/statcache.py b/Lib/statcache.py index 47b79da11c6c..cfc812bd7524 100644 --- a/Lib/statcache.py +++ b/Lib/statcache.py @@ -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 * diff --git a/Lib/xmllib.py b/Lib/xmllib.py index e8210e6177f0..445ab1394569 100644 --- a/Lib/xmllib.py +++ b/Lib/xmllib.py @@ -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'