diff Lib/statcache.py @ 22928:e2dec3cdf3c2 legacy-trunk

Add deprecation warnings for modules as documented
author Neal Norwitz <nnorwitz@gmail.com>
date Wed, 10 Apr 2002 02:04:00 +0000
parents 54229c35132e
children a1de0bab5475
line wrap: on
line diff
--- a/Lib/statcache.py	Wed Apr 10 01:45:11 2002 +0000
+++ b/Lib/statcache.py	Wed Apr 10 02:04:00 2002 +0000
@@ -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 *