mailr18716 - /trunk/lib/text/table.py


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

Header


Content

Posted by edward on March 08, 2013 - 18:30:
Author: bugman
Date: Fri Mar  8 18:30:47 2013
New Revision: 18716

URL: http://svn.gna.org/viewcvs/relax?rev=18716&view=rev
Log:
The lib.text.table.format_table() function now handles boolean types.


Modified:
    trunk/lib/text/table.py

Modified: trunk/lib/text/table.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/text/table.py?rev=18716&r1=18715&r2=18716&view=diff
==============================================================================
--- trunk/lib/text/table.py (original)
+++ trunk/lib/text/table.py Fri Mar  8 18:30:47 2013
@@ -88,6 +88,10 @@
                     data[i][j] = custom_format[j] % data[i][j]
                 except TypeError:
                     data[i][j] = "%s" % data[i][j]
+
+            # Bool types.
+            elif isinstance(data[i][j], bool):
+                data[i][j] = "%s" % data[i][j]
 
             # Int types.
             elif isinstance(data[i][j], int):




Related Messages


Powered by MHonArc, Updated Fri Mar 08 18:40:02 2013