diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-11 22:38:24 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-11 22:38:24 -0400 |
commit | 5143dd5376fac3e57048a524359d6e938dd67adb (patch) | |
tree | dad4e0536e38d00491fdc3483cb591f451abb354 /coverage/summary.py | |
parent | 6cdc3666a418d5234878c001d02b522254d29740 (diff) | |
download | python-coveragepy-git-5143dd5376fac3e57048a524359d6e938dd67adb.tar.gz |
Remove some lambdas
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 8a601a65..fe81683e 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] + map(lambda cu: len(cu.name), self.code_units)) + max_name = max(5, max([len(cu.name) for cu in self.code_units])) fmt_name = "%%- %ds " % max_name fmt_err = fmt_name + "%s: %s\n" header = fmt_name % "Name" + " Stmts Exec Cover\n" |