From f728f9a13e01e7d9fdd791f0a6e9a8ab1b6249a5 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Mon, 6 Mar 2000 19:12:33 +0000 Subject: import compile function form pycodegen --- Lib/compiler/__init__.py | 4 ++++ Tools/compiler/compiler/__init__.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Lib/compiler/__init__.py b/Lib/compiler/__init__.py index b7348f7..5c65eca 100644 --- a/Lib/compiler/__init__.py +++ b/Lib/compiler/__init__.py @@ -13,8 +13,12 @@ parseFile(path) -> AST walk(ast, visitor, verbose=None) Does a pre-order walk over the ast using the visitor instance. See compiler.visitor for details. + +compile(filename) + Generates a .pyc file by compilining filename. """ from transformer import parse, parseFile from visitor import walk +from pycodegen import compile diff --git a/Tools/compiler/compiler/__init__.py b/Tools/compiler/compiler/__init__.py index b7348f7..5c65eca 100644 --- a/Tools/compiler/compiler/__init__.py +++ b/Tools/compiler/compiler/__init__.py @@ -13,8 +13,12 @@ parseFile(path) -> AST walk(ast, visitor, verbose=None) Does a pre-order walk over the ast using the visitor instance. See compiler.visitor for details. + +compile(filename) + Generates a .pyc file by compilining filename. """ from transformer import parse, parseFile from visitor import walk +from pycodegen import compile -- cgit v0.12