diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-11 06:54:06 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-11 06:54:06 -0500 |
commit | 79f9f4575321fafc2ef770e3255f874db3d4b037 (patch) | |
tree | 55585f53e63083145add45c9779d3124ec171566 /lab/parser.py | |
parent | 0387bbaa5e9ab2ad834311249802695ebb0c34ca (diff) | |
download | python-coveragepy-git-79f9f4575321fafc2ef770e3255f874db3d4b037.tar.gz |
refactor: we no longer need to treat 'class' lines specially
Originally, this tokenizing code was paired with bytecode analysis. But now we
use AST instead, so class lines don't need to be handled differently.
Diffstat (limited to 'lab/parser.py')
-rw-r--r-- | lab/parser.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lab/parser.py b/lab/parser.py index 19cb94a8..50b43564 100644 --- a/lab/parser.py +++ b/lab/parser.py @@ -108,8 +108,6 @@ class ParserMain: marks[2] = str(exits) if lineno in pyparser.raw_docstrings: marks[3] = '"' - if lineno in pyparser.raw_classdefs: - marks[3] = 'C' if lineno in pyparser.raw_excluded: marks[4] = 'x' |