summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-24 07:07:34 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-24 07:07:34 (GMT)
commit2b499436b54cbd7c2f9ba71d1303f401bd929127 (patch)
treee02430aeaa5e90ce3e806279aabc2db77a7c7b51
parent0fb43762d5e0991da443887a27b277f199041b75 (diff)
downloadcpython-2b499436b54cbd7c2f9ba71d1303f401bd929127.zip
cpython-2b499436b54cbd7c2f9ba71d1303f401bd929127.tar.gz
cpython-2b499436b54cbd7c2f9ba71d1303f401bd929127.tar.bz2
Ok, compiler.transformer can really be imported now
-rw-r--r--Lib/compiler/__init__.py6
-rw-r--r--Lib/compiler/ast.py2
-rw-r--r--Lib/compiler/transformer.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/Lib/compiler/__init__.py b/Lib/compiler/__init__.py
index 3dc62f0..ce89144 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 08e0c6a..8dcdf68 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 504e283..604c57a 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")