[rtems-tools commit] rtemstoolkit: columns are only ints.

Chris Johns chrisj at rtems.org
Sun May 5 00:49:26 UTC 2019


Module:    rtems-tools
Branch:    master
Commit:    925448a4527ec1a88b800dbeca8b90ccb365b38e
Changeset: http://git.rtems.org/rtems-tools/commit/?id=925448a4527ec1a88b800dbeca8b90ccb365b38e

Author:    Chris Johns <chrisj at rtems.org>
Date:      Sun May  5 10:46:46 2019 +1000

rtemstoolkit: columns are only ints.

---

 rtemstoolkit/textbox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtemstoolkit/textbox.py b/rtemstoolkit/textbox.py
index 441e333..7e9f34e 100644
--- a/rtemstoolkit/textbox.py
+++ b/rtemstoolkit/textbox.py
@@ -61,7 +61,7 @@ def row(cols, data, indent = 0, marker = '|', linesep = os.linesep):
     return s + linesep
 
 def even_columns(cols, width = 80):
-    per_col = width / cols
+    per_col = int(width / cols)
     columns = [per_col for c in range(0, cols)]
     for remainder in range(0, int(width - (per_col * cols))):
         if remainder % 2 == 0:



More information about the vc mailing list