summaryrefslogtreecommitdiff
path: root/lab/parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-11-28 14:45:27 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-11-28 14:45:27 -0500
commit6b96b0cc571dd04d48f3289323b68815918d1469 (patch)
treeb59211fe661500acc6e26d05b64d45de61e1a262 /lab/parser.py
parent72899c11d601246805eb3b4ad487fd8323939d43 (diff)
downloadpython-coveragepy-git-6b96b0cc571dd04d48f3289323b68815918d1469.tar.gz
Pragmas on decorators apply to the entire function or class. #131
Diffstat (limited to 'lab/parser.py')
-rw-r--r--lab/parser.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lab/parser.py b/lab/parser.py
index bb593f8f..70c2b6b9 100644
--- a/lab/parser.py
+++ b/lab/parser.py
@@ -108,7 +108,9 @@ class ParserMain(object):
for lineno, ltext in enumerate(cp.lines, start=1):
m0 = m1 = m2 = m3 = a = ' '
- if lineno in cp.raw_statements:
+ if lineno in cp.statements:
+ m0 = '='
+ elif lineno in cp.raw_statements:
m0 = '-'
exits = exit_counts.get(lineno, 0)
if exits > 1: