+++ /dev/null
-"""Package for parsing and compiling Python source code\r
-\r
-There are several functions defined at the top level that are imported\r
-from modules contained in the package.\r
-\r
-parse(buf, mode="exec") -> AST\r
- Converts a string containing Python source code to an abstract\r
- syntax tree (AST). The AST is defined in compiler.ast.\r
-\r
-parseFile(path) -> AST\r
- The same as parse(open(path))\r
-\r
-walk(ast, visitor, verbose=None)\r
- Does a pre-order walk over the ast using the visitor instance.\r
- See compiler.visitor for details.\r
-\r
-compile(source, filename, mode, flags=None, dont_inherit=None)\r
- Returns a code object. A replacement for the builtin compile() function.\r
-\r
-compileFile(filename)\r
- Generates a .pyc file by compiling filename.\r
-"""\r
-\r
-import warnings\r
-\r
-warnings.warn("The compiler package is deprecated and removed in Python 3.x.",\r
- DeprecationWarning, stacklevel=2)\r
-\r
-from compiler.transformer import parse, parseFile\r
-from compiler.visitor import walk\r
-from compiler.pycodegen import compile, compileFile\r