summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-09-30 17:44:00 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2016-09-30 17:44:00 +0200
commit0a38763e820e1564be5c397ca8a9f413fc146bb3 (patch)
treef99791a20aed026945240be1c69eb00fdc9912e5
parent4e3153c5504e699784f9bf715d81ea4bc8a0fafe (diff)
downloadweb-0a38763e820e1564be5c397ca8a9f413fc146bb3.tar.gz
web-0a38763e820e1564be5c397ca8a9f413fc146bb3.tar.bz2
web-0a38763e820e1564be5c397ca8a9f413fc146bb3.zip
utils/console: Support printing of non-string types
-rw-r--r--accounts/utils/console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/utils/console.py b/accounts/utils/console.py
index 170286c..8ee717f 100644
--- a/accounts/utils/console.py
+++ b/accounts/utils/console.py
@@ -35,7 +35,7 @@ class TablePrinter(object):
return min([len(row) for row in rows])
def _column_width(column, width):
- widths = [len(elem) for elem in column]
+ widths = [len(str(elem)) for elem in column]
widths.append(width)
return max(widths)