summaryrefslogtreecommitdiff
path: root/lab
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-11-11 06:54:06 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-11-11 06:54:06 -0500
commit79f9f4575321fafc2ef770e3255f874db3d4b037 (patch)
tree55585f53e63083145add45c9779d3124ec171566 /lab
parent0387bbaa5e9ab2ad834311249802695ebb0c34ca (diff)
downloadpython-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')
-rw-r--r--lab/parser.py2
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'