Pretty print the AST in hy2py

This commit is contained in:
Nicolas Dandrimont 2014-01-03 17:17:51 +01:00
parent 715158c7db
commit 9a128edcb2
1 changed files with 1 additions and 2 deletions

View File

@ -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 = "<STDIN>"
@ -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))