[Scipy-svn] r2237 - trunk/Lib/maxentropy

scipy-svn at scipy.org scipy-svn at scipy.org
Fri Sep 29 11:47:47 CDT 2006


Author: rkern
Date: 2006-09-29 11:47:46 -0500 (Fri, 29 Sep 2006)
New Revision: 2237

Modified:
   trunk/Lib/maxentropy/maxentropy.py
   trunk/Lib/maxentropy/maxentutils.py
Log:
__future__ imports must come before any code in 2.5, apparently.

Modified: trunk/Lib/maxentropy/maxentropy.py
===================================================================
--- trunk/Lib/maxentropy/maxentropy.py	2006-09-29 11:36:34 UTC (rev 2236)
+++ trunk/Lib/maxentropy/maxentropy.py	2006-09-29 16:47:46 UTC (rev 2237)
@@ -3,6 +3,9 @@
 # Copyright: Ed Schofield, 2003-2006
 # License: BSD-style (see LICENSE.txt in main source directory)
 
+# Future imports must come before any code in 2.5
+from __future__ import division
+
 __author__ = "Ed Schofield"
 __version__ = '2.1'
 __changelog__ = """ 
@@ -66,7 +69,6 @@
 """
 
 
-from __future__ import division
 import math, types, cPickle
 import numpy
 from scipy import optimize, sparse

Modified: trunk/Lib/maxentropy/maxentutils.py
===================================================================
--- trunk/Lib/maxentropy/maxentutils.py	2006-09-29 11:36:34 UTC (rev 2236)
+++ trunk/Lib/maxentropy/maxentutils.py	2006-09-29 16:47:46 UTC (rev 2237)
@@ -11,10 +11,12 @@
 License: BSD-style (see LICENSE.txt in main source directory)
 """
 
+# Future imports must come before any code in 2.5
+from __future__ import division
+
 __author__ = "Ed Schofield"
 __version__ = '2.0'
 
-from __future__ import division
 import random, math, bisect, cmath
 import numpy
 from numpy import log, exp, asarray, ndarray



More information about the Scipy-svn mailing list