summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
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 014b4ab5..882c972b 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.