diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-10 02:58:26 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-10 02:58:26 (GMT) |
commit | 6192df10b6c5d157735feefc591e90a61c4000c0 (patch) | |
tree | b3f18700990fbaee8b0aac7f946af176d58b3882 /Lib/compiler | |
parent | af8780483129e10d30b660cea1e3b893d913e963 (diff) | |
download | cpython-6192df10b6c5d157735feefc591e90a61c4000c0.zip cpython-6192df10b6c5d157735feefc591e90a61c4000c0.tar.gz cpython-6192df10b6c5d157735feefc591e90a61c4000c0.tar.bz2 |
Deprecate the compiler package for removal in 3.0.
Diffstat (limited to 'Lib/compiler')
-rw-r--r-- | Lib/compiler/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/compiler/__init__.py b/Lib/compiler/__init__.py index ce89144..d75140a 100644 --- a/Lib/compiler/__init__.py +++ b/Lib/compiler/__init__.py @@ -20,6 +20,9 @@ compile(source, filename, mode, flags=None, dont_inherit=None) compileFile(filename) Generates a .pyc file by compiling filename. """ +from warnings import warnpy3k +warnpy3k("the compiler package has been removed in Python 3.0", stacklevel=2) +del warnpy3k from compiler.transformer import parse, parseFile from compiler.visitor import walk |