diff options
author | Chris Johns <chrisj@rtems.org> | 2019-05-05 10:46:46 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-05-05 10:48:49 +1000 |
commit | 925448a4527ec1a88b800dbeca8b90ccb365b38e (patch) | |
tree | aa7078ee5472312e436e5ee6aab27156b812cc1b | |
parent | coverage: Add subdirectory name in HTML reports (diff) | |
download | rtems-tools-925448a4527ec1a88b800dbeca8b90ccb365b38e.tar.bz2 |
rtemstoolkit: columns are only ints.
-rw-r--r-- | rtemstoolkit/textbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |