summaryrefslogtreecommitdiffstats
path: root/Lib/dircache.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-10 21:12:57 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-10 21:12:57 (GMT)
commit0aa6e1b8fb8c3ae656518a7e319a5f697158e7bf (patch)
treea51acc70eca609cdedfe1d87efaf69a9514d9342 /Lib/dircache.py
parent10f5db6424595f0389ff84e053a12a1b60d73cd2 (diff)
downloadcpython-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.py3
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