diff options
-rw-r--r-- | cliff/formatters/table.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cliff/formatters/table.py b/cliff/formatters/table.py index b7e978a..298c5f7 100644 --- a/cliff/formatters/table.py +++ b/cliff/formatters/table.py @@ -11,9 +11,12 @@ class TableFormatter(ListFormatter, SingleFormatter): ALIGNMENTS = { int: 'r', str: 'l', - unicode: 'l', float: 'r', } + try: + ALIGNMENTS[unicode] = 'l' + except NameError: + pass def add_argument_group(self, parser): group = parser.add_argument_group( |