diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2016-09-30 17:44:00 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2016-09-30 17:44:00 +0200 |
commit | 0a38763e820e1564be5c397ca8a9f413fc146bb3 (patch) | |
tree | f99791a20aed026945240be1c69eb00fdc9912e5 | |
parent | 4e3153c5504e699784f9bf715d81ea4bc8a0fafe (diff) | |
download | web-0a38763e820e1564be5c397ca8a9f413fc146bb3.tar.gz web-0a38763e820e1564be5c397ca8a9f413fc146bb3.tar.bz2 web-0a38763e820e1564be5c397ca8a9f413fc146bb3.zip |
utils/console: Support printing of non-string types
-rw-r--r-- | accounts/utils/console.py | 2 |
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) |