mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Ok, compiler.transformer can really be imported now
This commit is contained in:
parent
0fb43762d5
commit
2b499436b5
3 changed files with 6 additions and 6 deletions
|
@ -21,6 +21,6 @@ compileFile(filename)
|
|||
Generates a .pyc file by compiling filename.
|
||||
"""
|
||||
|
||||
from .transformer import parse, parseFile
|
||||
from .visitor import walk
|
||||
from .pycodegen import compile, compileFile
|
||||
from compiler.transformer import parse, parseFile
|
||||
from compiler.visitor import walk
|
||||
from compiler.pycodegen import compile, compileFile
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
This file is automatically generated by Tools/compiler/astgen.py
|
||||
"""
|
||||
from consts import CO_VARARGS, CO_VARKEYWORDS
|
||||
from compiler.consts import CO_VARARGS, CO_VARKEYWORDS
|
||||
|
||||
def flatten(seq):
|
||||
l = []
|
||||
|
|
|
@ -34,8 +34,8 @@ import sys
|
|||
class WalkerError(StandardError):
|
||||
pass
|
||||
|
||||
from consts import CO_VARARGS, CO_VARKEYWORDS
|
||||
from consts import OP_ASSIGN, OP_DELETE, OP_APPLY
|
||||
from compiler.consts import CO_VARARGS, CO_VARKEYWORDS
|
||||
from compiler.consts import OP_ASSIGN, OP_DELETE, OP_APPLY
|
||||
|
||||
def parseFile(path):
|
||||
f = open(path, "U")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue