summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-09 06:35:19 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-09 06:35:19 -0400
commit47f4965f0a683a73651bda7cb9cba768d28131c4 (patch)
treeef3ab05dcf8bd36bec3d6a466b43df46c56a8fa1 /coverage/parser.py
parent0f6dfa984102af7f07b97f9d12410cce064ea980 (diff)
downloadpython-coveragepy-47f4965f0a683a73651bda7cb9cba768d28131c4.tar.gz
.arcs() doesn't have to sort its results.
Diffstat (limited to 'coverage/parser.py')
-rw-r--r--coverage/parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/parser.py b/coverage/parser.py
index 497ddeb..42b9bca 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -224,7 +224,7 @@ class PythonParser(object):
def arcs(self):
"""Get information about the arcs available in the code.
- Returns a sorted list of line number pairs. Line numbers have been
+ Returns a list of line number pairs. Line numbers have been
normalized to the first line of multi-line statements.
"""
@@ -234,7 +234,7 @@ class PythonParser(object):
fl2 = self.first_line(l2)
if fl1 != fl2:
all_arcs.append((fl1, fl2))
- return sorted(all_arcs)
+ return all_arcs
@expensive
def exit_counts(self):