diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-04-10 02:04:00 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-04-10 02:04:00 (GMT) |
commit | ab3b9eb4770081b210ba1f4d878c80f2e5815bf6 (patch) | |
tree | cf4eceb50350464ff2c601da372f0845c5ecc004 /Lib/statcache.py | |
parent | 6e99704fcffec9080e29b0ff42abff404d1e6f61 (diff) | |
download | cpython-ab3b9eb4770081b210ba1f4d878c80f2e5815bf6.zip cpython-ab3b9eb4770081b210ba1f4d878c80f2e5815bf6.tar.gz cpython-ab3b9eb4770081b210ba1f4d878c80f2e5815bf6.tar.bz2 |
Add deprecation warnings for modules as documented
Diffstat (limited to 'Lib/statcache.py')
-rw-r--r-- | Lib/statcache.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/statcache.py b/Lib/statcache.py index 47b79da..cfc812b 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 * |