diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2006-04-03 04:45:34 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-04-03 04:45:34 +0000 |
| commit | b902f4e401bbf5ada3494c4fb7eeab605a370e10 (patch) | |
| tree | 5fe70c6b50f12d41bce604fd031d432b84d8e76b /Lib/compiler | |
| parent | 480725d4c5bd3738c1f1fc7af74fa8825705c428 (diff) | |
| download | cpython-git-b902f4e401bbf5ada3494c4fb7eeab605a370e10.tar.gz | |
Use absolute imports
Diffstat (limited to 'Lib/compiler')
| -rw-r--r-- | Lib/compiler/__init__.py | 6 | ||||
| -rw-r--r-- | Lib/compiler/ast.py | 2 | ||||
| -rw-r--r-- | Lib/compiler/transformer.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Lib/compiler/__init__.py b/Lib/compiler/__init__.py index 13b05bfbe2..ce89144b73 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 08e0c6a446..8dcdf68ada 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 cc91b4f10c..8225dfa3fe 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") |
