Skip to content

Commit 5269070

Browse files
committed
fix for latest prettytable
1 parent f660e38 commit 5269070

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sz_tools/sz_configtool

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6131,7 +6131,9 @@ class SzCfgShell(cmd.Cmd):
61316131
table_object.add_row(tblRow)
61326132

61336133
table_object.align = "l"
6134-
if hasattr(prettytable, "SINGLE_BORDER"):
6134+
if hasattr(prettytable, "TableStyle"):
6135+
table_object.set_style(prettytable.TableStyle.SINGLE_BORDER)
6136+
else:
61356137
table_object.set_style(prettytable.SINGLE_BORDER)
61366138
table_object.hrules = 1
61376139
render_string = table_object.get_string()

0 commit comments

Comments
 (0)