diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-11-28 14:45:27 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-11-28 14:45:27 -0500 |
commit | ed73d02203e0096a7fcec28506a23cc860c506f5 (patch) | |
tree | b22dcd7f0da4b6f32df60723fae3d593af4726bd /lab | |
parent | 5a3f3c5525a97e5da2220f7ba30275c7e464111b (diff) | |
download | python-coveragepy-ed73d02203e0096a7fcec28506a23cc860c506f5.tar.gz |
Pragmas on decorators apply to the entire function or class. #131
Diffstat (limited to 'lab')
-rw-r--r-- | lab/parser.py | 4 |
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: |