diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-15 12:25:31 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-15 12:25:31 -0400 |
commit | 45e592dd01eca2e018c2e11572eb1bab6a48e5d5 (patch) | |
tree | a4f0e29aab9e24ffea7c130b0ac6a6945e9d14fd /coverage/parser.py | |
parent | 58bd03c278741b4ec259f6afb739c3704594e40d (diff) | |
download | python-coveragepy-git-45e592dd01eca2e018c2e11572eb1bab6a48e5d5.tar.gz |
Finish the plugin docstrings.
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 10 |
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. |