summaryrefslogtreecommitdiffstats
path: root/Lib/compiler
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-03 04:45:34 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-03 04:45:34 (GMT)
commitb902f4e401bbf5ada3494c4fb7eeab605a370e10 (patch)
tree5fe70c6b50f12d41bce604fd031d432b84d8e76b /Lib/compiler
parent480725d4c5bd3738c1f1fc7af74fa8825705c428 (diff)
downloadcpython-b902f4e401bbf5ada3494c4fb7eeab605a370e10.zip
cpython-b902f4e401bbf5ada3494c4fb7eeab605a370e10.tar.gz
cpython-b902f4e401bbf5ada3494c4fb7eeab605a370e10.tar.bz2
Use absolute imports
Diffstat (limited to 'Lib/compiler')
-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 13b05bf..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 cc91b4f..8225dfa 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")