summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-10-20 07:40:37 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-10-20 07:40:37 -0400
commitf0459a54bb3e703691359aa3078a8234173ec361 (patch)
tree70ce73f58e91569e81be25081bfa9dcce3d468c1 /coverage/parser.py
parent0a3a4218d1555d33f7c0e5b3db2ed561ba9e29b3 (diff)
downloadpython-coveragepy-f0459a54bb3e703691359aa3078a8234173ec361.tar.gz
My own decorators can be decorators
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 6332f63..37beede 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -219,6 +219,7 @@ class CodeParser(object):
return lines, excluded_lines
+ @expensive
def arcs(self):
"""Get information about the arcs available in the code.
@@ -233,8 +234,8 @@ class CodeParser(object):
if fl1 != fl2:
all_arcs.append((fl1, fl2))
return sorted(all_arcs)
- arcs = expensive(arcs)
+ @expensive
def exit_counts(self):
"""Get a mapping from line numbers to count of exits from that line.
@@ -262,7 +263,6 @@ class CodeParser(object):
exit_counts[l] -= 1
return exit_counts
- exit_counts = expensive(exit_counts)
## Opcodes that guide the ByteParser.