diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-20 07:40:37 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-20 07:40:37 -0400 |
commit | 2e5688eedd1576e9b100386c0a9ae30828123f73 (patch) | |
tree | 961f23c1dceee2297027111399022a107abff194 /coverage/parser.py | |
parent | 35cfd9334d381d06e8a5364a2eaa4b7b8d7b0bbc (diff) | |
download | python-coveragepy-git-2e5688eedd1576e9b100386c0a9ae30828123f73.tar.gz |
My own decorators can be decorators
--HG--
branch : 4.0
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index 6332f637..37beeded 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. |