summaryrefslogtreecommitdiff
path: root/lab
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
commited73d02203e0096a7fcec28506a23cc860c506f5 (patch)
treeb22dcd7f0da4b6f32df60723fae3d593af4726bd /lab
parent5a3f3c5525a97e5da2220f7ba30275c7e464111b (diff)
downloadpython-coveragepy-ed73d02203e0096a7fcec28506a23cc860c506f5.tar.gz
Pragmas on decorators apply to the entire function or class. #131
Diffstat (limited to 'lab')
-rw-r--r--lab/parser.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lab/parser.py b/lab/parser.py
index bb593f8..70c2b6b 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: