Force output encoding of hy2py as utf-8
Fixes hy2py in py34
This commit is contained in:
parent
1d58e52584
commit
f452558f5e
@ -11,15 +11,15 @@ import ast
|
||||
module_name = "<STDIN>"
|
||||
|
||||
hst = import_file_to_hst(sys.argv[1])
|
||||
print(hst)
|
||||
print(str(hst).encode("utf-8"))
|
||||
print("")
|
||||
print("")
|
||||
_ast = import_file_to_ast(sys.argv[1], module_name)
|
||||
print("")
|
||||
print("")
|
||||
print(ast.dump(_ast))
|
||||
print(ast.dump(_ast).encode("utf-8"))
|
||||
print("")
|
||||
print("")
|
||||
print(astor.codegen.to_source(_ast))
|
||||
print(astor.codegen.to_source(_ast).encode("utf-8"))
|
||||
|
||||
import_file_to_module(module_name, sys.argv[1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user