Commit d6cc0d2 1 parent 5f9f8e4 commit d6cc0d2 Copy full SHA for d6cc0d2
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -229,8 +229,8 @@ def _prettytable(
229
229
) -> str :
230
230
from prettytable import PrettyTable , TableStyle
231
231
232
- x = PrettyTable ()
233
- x .set_style (
232
+ table = PrettyTable ()
233
+ table .set_style (
234
234
TableStyle .MARKDOWN if format_ == "markdown" else TableStyle .SINGLE_BORDER
235
235
)
236
236
do_color = color != "no" and format_ == "pretty"
@@ -239,19 +239,19 @@ def _prettytable(
239
239
left_align = header in ("cycle" , "latest" , "link" )
240
240
display_header = colored (header , attrs = ["bold" ]) if do_color else header
241
241
col_data = [row [header ] if header in row else "" for row in data ]
242
- x .add_column (display_header , col_data )
242
+ table .add_column (display_header , col_data )
243
243
244
244
if left_align :
245
- x .align [display_header ] = "l"
245
+ table .align [display_header ] = "l"
246
246
247
247
title_prefix = ""
248
248
if title :
249
249
if format_ == "pretty" :
250
- x .title = colored (title , attrs = ["bold" ]) if do_color else title
250
+ table .title = colored (title , attrs = ["bold" ]) if do_color else title
251
251
else :
252
252
title_prefix = f"## { title } \n \n "
253
253
254
- return title_prefix + x .get_string ()
254
+ return title_prefix + table .get_string ()
255
255
256
256
257
257
def _pytablewriter (
You can’t perform that action at this time.
0 commit comments