Add "from __future__ import division" to Python code generated by hy2py
This is mainly to make we don't forget this. The current state of hy2py is more a proof-of-concept than a usable tool anyway.
This commit is contained in:
parent
0c56885d42
commit
c30a116416
@ -17,6 +17,7 @@ print ""
|
|||||||
print ast.dump(_ast)
|
print ast.dump(_ast)
|
||||||
print ""
|
print ""
|
||||||
print ""
|
print ""
|
||||||
|
print "from __future__ import division"
|
||||||
print astor.codegen.to_source(_ast)
|
print astor.codegen.to_source(_ast)
|
||||||
|
|
||||||
import_file_to_module("<STDIN>", sys.argv[1])
|
import_file_to_module("<STDIN>", sys.argv[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user