From 9a128edcb23294f6bb6044dab6431a0253ab9447 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Fri, 3 Jan 2014 17:17:51 +0100 Subject: [PATCH] Pretty print the AST in hy2py --- bin/hy2py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/hy2py b/bin/hy2py index 125fd26..9a1199e 100755 --- a/bin/hy2py +++ b/bin/hy2py @@ -6,7 +6,6 @@ from hy.importer import (import_file_to_ast, import_file_to_module, import astor.codegen import sys -import ast module_name = "" @@ -17,7 +16,7 @@ print("") _ast = import_file_to_ast(sys.argv[1], module_name) print("") print("") -print(ast.dump(_ast)) +print(astor.dump(_ast)) print("") print("") print(astor.codegen.to_source(_ast))