summaryrefslogtreecommitdiff
path: root/coverage/results.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-12-26 06:19:51 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-12-26 06:19:51 -0500
commitade98fc1e0d80ca05554312454173b607f893304 (patch)
tree4f08b61763c9eb4e67cd296c5c17cf4c0bc5e60c /coverage/results.py
parent31a42af7739f55033f122b28eb4beb0bb4ffdafd (diff)
downloadpython-coveragepy-git-ade98fc1e0d80ca05554312454173b607f893304.tar.gz
Simplify format_lines a little
Diffstat (limited to 'coverage/results.py')
-rw-r--r--coverage/results.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/results.py b/coverage/results.py
index 529899de..7b7985ac 100644
--- a/coverage/results.py
+++ b/coverage/results.py
@@ -303,14 +303,14 @@ def format_lines(statements, lines, arcs=None):
included in the output as long as start isn't in `lines`.
"""
- line_items = [(pair[0], 0, nice_pair(pair)) for pair in _line_ranges(statements, lines)]
+ line_items = [(pair[0], nice_pair(pair)) for pair in _line_ranges(statements, lines)]
if arcs:
line_exits = sorted(arcs)
for line, exits in line_exits:
for ex in sorted(exits):
if line not in lines:
dest = (ex if ex > 0 else "exit")
- line_items.append((line, 1, "%d->%s" % (line, dest)))
+ line_items.append((line, "%d->%s" % (line, dest)))
ret = ', '.join(t[-1] for t in sorted(line_items))
return ret