From: Neal Norwitz Date: Fri, 24 Mar 2006 07:07:34 +0000 (+0000) Subject: Ok, compiler.transformer can really be imported now X-Git-Tag: v3.0a1~1468 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b499436b54cbd7c2f9ba71d1303f401bd929127;p=thirdparty%2FPython%2Fcpython.git Ok, compiler.transformer can really be imported now --- diff --git a/Lib/compiler/__init__.py b/Lib/compiler/__init__.py index 3dc62f0e56c0..ce89144b7335 100644 --- a/Lib/compiler/__init__.py +++ b/Lib/compiler/__init__.py @@ -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 diff --git a/Lib/compiler/ast.py b/Lib/compiler/ast.py index 08e0c6a4460c..8dcdf68ada37 100644 --- a/Lib/compiler/ast.py +++ b/Lib/compiler/ast.py @@ -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 = [] diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py index 504e283b0ae3..604c57adfdab 100644 --- a/Lib/compiler/transformer.py +++ b/Lib/compiler/transformer.py @@ -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")