diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-10 21:12:57 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-10 21:12:57 (GMT) |
commit | 0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf (patch) | |
tree | a51acc70eca609cdedfe1d87efaf69a9514d9342 /Lib/dircache.py | |
parent | 10f5db6424595f0389ff84e053a12a1b60d73cd2 (diff) | |
download | cpython-0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf.zip cpython-0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf.tar.gz cpython-0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf.tar.bz2 |
Deprecate the dircache module for 3.0.
Diffstat (limited to 'Lib/dircache.py')
-rw-r--r-- | Lib/dircache.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/dircache.py b/Lib/dircache.py index 78ec7fe..7e4f0b5 100644 --- a/Lib/dircache.py +++ b/Lib/dircache.py @@ -3,6 +3,9 @@ The listdir() routine returns a sorted list of the files in a directory, using a cache to avoid reading the directory more often than necessary. The annotate() routine appends slashes to directories.""" +from warnings import warnpy3k +warnpy3k("the dircache module has been removed in Python 3.0", stacklevel=2) +del warnpy3k import os |