Ok, compiler.transformer can really be imported now

This commit is contained in:
Neal Norwitz 2006-03-24 07:07:34 +00:00
parent 0fb43762d5
commit 2b499436b5
3 changed files with 6 additions and 6 deletions

View file

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

View file

@ -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 = []

View file

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