Skip to content

Commit

Permalink
fix deprecated uses of beautifultable (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
BonusPlay authored Jun 21, 2021
1 parent 7adc717 commit 5fda56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/formatters/tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def format_attr_table(self, data):
key = key + ":"
if self.colorize:
key = click.style(key, bold=True)
table.append_row([key, formatter.format(self, value)])
return table.get_string()
table.rows.append([key, formatter.format(self, value)])
return str(table)

def format_table(self, headers, widths, row_formatter, rows):
term_width, term_height = click.get_terminal_size()
Expand Down

0 comments on commit 5fda56f

Please sign in to comment.