From 3972628de3d569c88451a2a176a1c94d8822b8a6 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 18 May 2017 07:35:54 -0700 Subject: bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489) * Replaced list() with list comprehension * Replaced dict() with dict comprehension * Replaced set() with set literal * Replaced builtin func() with func() when supported (e.g. any(), all(), tuple(), min(), & max()) --- Tools/scripts/byext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Tools/scripts/byext.py') diff --git a/Tools/scripts/byext.py b/Tools/scripts/byext.py index 736a441761..a4b2f7ff6d 100755 --- a/Tools/scripts/byext.py +++ b/Tools/scripts/byext.py @@ -83,7 +83,7 @@ class Stats: columns.update(self.stats[ext]) cols = sorted(columns) colwidth = {} - colwidth["ext"] = max([len(ext) for ext in exts]) + colwidth["ext"] = max(map(len, exts)) minwidth = 6 self.stats["TOTAL"] = {} for col in cols: -- cgit v1.2.1