summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-05-11 22:11:37 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-05-11 22:11:37 -0400
commit9b1318c0fb150ab019888f86d384f10241baaf16 (patch)
tree6f3bc29a942eef9926e5036a4a282b171d60b4a0 /coverage/summary.py
parente5c4c1f988c155440eb4591e6060166388a40ea9 (diff)
downloadpython-coveragepy-9b1318c0fb150ab019888f86d384f10241baaf16.tar.gz
Reporting on nothing is OK.
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py2
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"