# HG changeset patch
# User dmharvey@math.harvard.edu
# Date 1215886935 14400
# Node ID a0e1300c81734dfc203900918af4c0f57c240fa2
# Parent  c25e04ebfb67678948024df2a820350c4b503acf
force future division in notebook

diff -r c25e04ebfb67 -r a0e1300c8173 sage/server/notebook/worksheet.py
--- a/sage/server/notebook/worksheet.py	Tue Jun 17 23:34:09 2008 -0700
+++ b/sage/server/notebook/worksheet.py	Sat Jul 12 14:22:15 2008 -0400
@@ -1427,6 +1427,7 @@
         # Unfortunately, this has to go here at the beginning of the file until Python 2.6,
         # in order to support use of the with statement in the notebook.  Very annoying. 
         input = 'from __future__ import with_statement\n' + input
+        input = 'from __future__ import division\n' + input
 
         # This magic comment at the very start of the file allows utf8
         # characters in the file
