summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-15 12:25:31 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-15 12:25:31 -0400
commit57ba28879f410598e01bc6d8451ab40ce503809c (patch)
tree4c529891cfb7b1cd4d194270341f8c25781d1f2c /coverage/parser.py
parent167a77712b7527113805ce50f1e61e65fe477a77 (diff)
downloadpython-coveragepy-57ba28879f410598e01bc6d8451ab40ce503809c.tar.gz
Finish the plugin docstrings.
Diffstat (limited to 'coverage/parser.py')
-rw-r--r--coverage/parser.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/coverage/parser.py b/coverage/parser.py
index 014b4ab..882c972 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -229,21 +229,21 @@ class PythonParser(object):
def arcs(self):
"""Get information about the arcs available in the code.
- Returns a list of line number pairs. Line numbers have been
- normalized to the first line of multi-line statements.
+ Returns a set of line number pairs. Line numbers have been normalized
+ to the first line of multi-line statements.
"""
if self._all_arcs is None:
- self._all_arcs = []
+ self._all_arcs = set()
for l1, l2 in self.byte_parser._all_arcs():
fl1 = self.first_line(l1)
fl2 = self.first_line(l2)
if fl1 != fl2:
- self._all_arcs.append((fl1, fl2))
+ self._all_arcs.add((fl1, fl2))
return self._all_arcs
def exit_counts(self):
- """Get a mapping from line numbers to count of exits from that line.
+ """Get a count of exits from that each line.
Excluded lines are excluded.