diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-11 22:11:37 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-11 22:11:37 -0400 |
commit | 6cdc3666a418d5234878c001d02b522254d29740 (patch) | |
tree | cfa72660cab398e7296ff5a822dd8282c274e734 /coverage/summary.py | |
parent | eb862b1fe13968a0e2b1e75682c59af540c8b9bd (diff) | |
download | python-coveragepy-git-6cdc3666a418d5234878c001d02b522254d29740.tar.gz |
Reporting on nothing is OK.
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 275075d9..8a601a65 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" |