From c30a1164168c97a41173405f486ccce6ab90cfcb Mon Sep 17 00:00:00 2001 From: Konrad Hinsen Date: Fri, 12 Apr 2013 08:00:08 +0200 Subject: [PATCH] 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. --- bin/hy2py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/hy2py b/bin/hy2py index 9894ec5..5ebdbe0 100755 --- a/bin/hy2py +++ b/bin/hy2py @@ -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("", sys.argv[1])