Skip to content

Commit

Permalink
consistently use [] instead of sometimes using list()
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Sep 19, 2022
1 parent 76b3450 commit 5c65cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ def get_stats_summary(stats: RequestStats, current=True) -> List[str]:
stats summary will be returned as list of string
"""
name_column_width = (STATS_NAME_WIDTH - STATS_TYPE_WIDTH) + 4 # saved characters by compacting other columns
summary = list()
summary = []
summary.append(
("%-" + str(STATS_TYPE_WIDTH) + "s %-" + str(name_column_width) + "s %7s %12s |%7s %7s %7s%7s | %7s %11s")
% ("Type", "Name", "# reqs", "# fails", "Avg", "Min", "Max", "Med", "req/s", "failures/s")
Expand Down

0 comments on commit 5c65cb3

Please sign in to comment.