diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-08-22 23:18:14 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-08-22 23:18:14 -0400 |
commit | 32320cabc97ccca3f2492faa55b542c4a158c2c9 (patch) | |
tree | 787b10a7e7c1f1ce4b24e13f68c8b0b85e48f5de /coverage/html.py | |
parent | 98ca1822da51c3c73201d04966656e605c21a6a5 (diff) | |
download | python-coveragepy-32320cabc97ccca3f2492faa55b542c4a158c2c9.tar.gz |
Unify formatting of coverage percentages, and don't show zero or 100 as a result of rounding. Fixes #41 and #70.
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/coverage/html.py b/coverage/html.py index fc6d801..9ca4dea 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -174,10 +174,6 @@ def escape(t): .replace(" ", " ") ) -def format_pct(p): - """Format `p` as a percentage value for the HTML reports.""" - return "%.0f" % p - def spaceless(html): """Squeeze out some annoying extra space from an HTML string. |