mailr17671 - /trunk/prompt/uf_docstring.py


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

Header


Content

Posted by edward on October 02, 2012 - 15:48:
Author: bugman
Date: Tue Oct  2 15:48:31 2012
New Revision: 17671

URL: http://svn.gna.org/viewcvs/relax?rev=17671&view=rev
Log:
Python 3 fix for the user function docstring creation in the prompt UI mode.

Again this is the problem of a division now returning a float rather than an 
int.


Modified:
    trunk/prompt/uf_docstring.py

Modified: trunk/prompt/uf_docstring.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/prompt/uf_docstring.py?rev=17671&r1=17670&r2=17671&view=diff
==============================================================================
--- trunk/prompt/uf_docstring.py (original)
+++ trunk/prompt/uf_docstring.py Tue Oct  2 15:48:31 2012
@@ -142,7 +142,7 @@
         # Loop.
         while True:
             # The average column width.
-            ave_width = free_space_wrap / num_cols_wrap
+            ave_width = int(free_space_wrap / num_cols_wrap)
 
             # Debugging printout.
             if status.debug:




Related Messages


Powered by MHonArc, Updated Tue Oct 02 16:20:02 2012