summaryrefslogtreecommitdiff
path: root/coverage/results.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-02-04 09:47:24 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-02-04 09:47:24 -0500
commitf455bd80cf7c8b4cb1cbda494f48d0a3dc710da0 (patch)
tree20c1965cab5966a005e558bb0ca9936004d7f2ca /coverage/results.py
parent72e453de1f22fe405ea3dcb03fca3d6cfc2e0793 (diff)
downloadpython-coveragepy-git-f455bd80cf7c8b4cb1cbda494f48d0a3dc710da0.tar.gz
Drive-by cleanup
Diffstat (limited to 'coverage/results.py')
-rw-r--r--coverage/results.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/coverage/results.py b/coverage/results.py
index 9627373d..dc93f3fe 100644
--- a/coverage/results.py
+++ b/coverage/results.py
@@ -30,9 +30,7 @@ class Analysis(object):
self.no_branch = self.file_reporter.no_branch_lines()
n_branches = self.total_branches()
mba = self.missing_branch_arcs()
- n_partial_branches = sum(
- len(v) for k,v in iitems(mba) if k not in self.missing
- )
+ n_partial_branches = sum(len(v) for k,v in iitems(mba) if k not in self.missing)
n_missing_branches = sum(len(v) for k,v in iitems(mba))
else:
self._arc_possibilities = []
@@ -48,7 +46,7 @@ class Analysis(object):
n_branches=n_branches,
n_partial_branches=n_partial_branches,
n_missing_branches=n_missing_branches,
- )
+ )
def missing_formatted(self):
"""The missing line numbers, formatted nicely.
@@ -84,7 +82,7 @@ class Analysis(object):
return sorted(missing)
def arcs_missing_formatted(self):
- """ The missing branch arcs, formatted nicely.
+ """The missing branch arcs, formatted nicely.
Returns a string like "1->2, 1->3, 16->20". Omits any mention of
branches from missing lines, so if line 17 is missing, then 17->18