diff options
Diffstat (limited to 'coverage/summary.py')
-rw-r--r-- | coverage/summary.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/summary.py b/coverage/summary.py index 275075d..8a601a6 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -18,7 +18,7 @@ class SummaryReporter(Reporter): self.find_code_units(morfs, omit_prefixes) # Prepare the formatting strings - max_name = max(5, max(map(lambda cu: len(cu.name), self.code_units))) + max_name = max([5] + map(lambda cu: len(cu.name), self.code_units)) fmt_name = "%%- %ds " % max_name fmt_err = fmt_name + "%s: %s\n" header = fmt_name % "Name" + " Stmts Exec Cover\n" |