mailr17633 - /trunk/info.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 01, 2012 - 22:41:
Author: bugman
Date: Mon Oct  1 22:41:26 2012
New Revision: 17633

URL: http://svn.gna.org/viewcvs/relax?rev=17633&view=rev
Log:
Python 3 fix - ensure an integer is actually an integer (division now 
converts ints to floats).


Modified:
    trunk/info.py

Modified: trunk/info.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/info.py?rev=17633&r1=17632&r2=17633&view=diff
==============================================================================
--- trunk/info.py (original)
+++ trunk/info.py Mon Oct  1 22:41:26 2012
@@ -131,7 +131,7 @@
         """
 
         # Calculate the number of spaces needed.
-        spaces = (width - len(string)) / 2
+        spaces = int((width - len(string)) / 2)
 
         # The new string.
         string = spaces * ' ' + string




Related Messages


Powered by MHonArc, Updated Mon Oct 01 23:00:01 2012