Kaydet (Commit) 2b499436 authored tarafından Neal Norwitz's avatar Neal Norwitz

Ok, compiler.transformer can really be imported now

üst 0fb43762
...@@ -21,6 +21,6 @@ compileFile(filename) ...@@ -21,6 +21,6 @@ compileFile(filename)
Generates a .pyc file by compiling filename. Generates a .pyc file by compiling filename.
""" """
from .transformer import parse, parseFile from compiler.transformer import parse, parseFile
from .visitor import walk from compiler.visitor import walk
from .pycodegen import compile, compileFile from compiler.pycodegen import compile, compileFile
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
This file is automatically generated by Tools/compiler/astgen.py 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): def flatten(seq):
l = [] l = []
......
...@@ -34,8 +34,8 @@ import sys ...@@ -34,8 +34,8 @@ import sys
class WalkerError(StandardError): class WalkerError(StandardError):
pass pass
from consts import CO_VARARGS, CO_VARKEYWORDS from compiler.consts import CO_VARARGS, CO_VARKEYWORDS
from consts import OP_ASSIGN, OP_DELETE, OP_APPLY from compiler.consts import OP_ASSIGN, OP_DELETE, OP_APPLY
def parseFile(path): def parseFile(path):
f = open(path, "U") f = open(path, "U")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment