Deprecate the compiler package for removal in 3.0.

This commit is contained in:
Brett Cannon 2008-05-10 02:58:26 +00:00
parent af87804831
commit 6192df10b6
4 changed files with 11 additions and 2 deletions

View file

@ -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