mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Deprecate the compiler package for removal in 3.0.
This commit is contained in:
parent
af87804831
commit
6192df10b6
4 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue