[Numpy-svn] r8168 - trunk/numpy/f2py

numpy-svn@scip... numpy-svn@scip...
Sat Feb 20 12:14:11 CST 2010


Author: ptvirtan
Date: 2010-02-20 12:14:11 -0600 (Sat, 20 Feb 2010)
New Revision: 8168

Modified:
   trunk/numpy/f2py/auxfuncs.py
Log:
3K: f2py: use integer division to avoid problems with string multiplication

Modified: trunk/numpy/f2py/auxfuncs.py
===================================================================
--- trunk/numpy/f2py/auxfuncs.py	2010-02-20 18:13:57 UTC (rev 8167)
+++ trunk/numpy/f2py/auxfuncs.py	2010-02-20 18:14:11 UTC (rev 8168)
@@ -575,7 +575,7 @@
     return rout['f2pymultilines'].get(k,None)
 
 def gentitle(name):
-    l=(80-len(name)-6)/2
+    l=(80-len(name)-6)//2
     return '/*%s %s %s*/'%(l*'*',name,l*'*')
 
 def flatlist(l):



More information about the Numpy-svn mailing list