From: <fwi...@us...> - 2009-01-08 19:36:37
|
Revision: 5885 http://jython.svn.sourceforge.net/jython/?rev=5885&view=rev Author: fwierzbicki Date: 2009-01-08 19:36:33 +0000 (Thu, 08 Jan 2009) Log Message: ----------- _ast -> ast Modified Paths: -------------- trunk/jython/ast/astview.py Modified: trunk/jython/ast/astview.py =================================================================== --- trunk/jython/ast/astview.py 2009-01-08 19:34:31 UTC (rev 5884) +++ trunk/jython/ast/astview.py 2009-01-08 19:36:33 UTC (rev 5885) @@ -10,7 +10,7 @@ """ -import _ast +import ast import sys if sys.platform.startswith('java'): @@ -49,7 +49,7 @@ children = [child] for node in children: - if isinstance(node, _ast.AST): + if isinstance(node, ast.AST): yield lispify_ast(node) else: if isinstance(node, float): @@ -64,10 +64,10 @@ def tree(pyfile): try: - ast = compile(open(pyfile).read(), pyfile, "exec", _ast.PyCF_ONLY_AST) + node = compile(open(pyfile).read(), pyfile, "exec", ast.PyCF_ONLY_AST) except SyntaxError: return "SyntaxError", - return lispify_ast(ast) + return lispify_ast(node) if __name__ == '__main__': import pprint This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |