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:
Konrad Hinsen 2013-04-12 08:00:08 +02:00
parent 0c56885d42
commit c30a116416
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ print ""
print ast.dump(_ast)
print ""
print ""
print "from __future__ import division"
print astor.codegen.to_source(_ast)
import_file_to_module("<STDIN>", sys.argv[1])