From 5fda56f9724fb8d0889ceeb922c086f348e5e405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Kli=C5=9B?= Date: Mon, 21 Jun 2021 13:02:06 +0200 Subject: [PATCH] fix deprecated uses of beautifultable (#37) --- src/cli/formatters/tabular.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/formatters/tabular.py b/src/cli/formatters/tabular.py index 8418979..7cd04e8 100644 --- a/src/cli/formatters/tabular.py +++ b/src/cli/formatters/tabular.py @@ -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()