From ab3b9eb4770081b210ba1f4d878c80f2e5815bf6 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Wed, 10 Apr 2002 02:04:00 +0000 Subject: Add deprecation warnings for modules as documented --- Lib/statcache.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lib/statcache.py') diff --git a/Lib/statcache.py b/Lib/statcache.py index 47b79da11c..cfc812bd75 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 * -- cgit v1.2.1