Skip to content

Commit dc879ff

Browse files
committed
Don't allow ParseError/SerializerError tokens, whatever they are!
1 parent 5336ebe commit dc879ff

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

html5lib/filters/lint.py

-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ def __iter__(self):
6464
assert name is None or isinstance(name, text_type)
6565
# XXX: what to do with token["data"] ?
6666

67-
elif type in ("ParseError", "SerializeError"):
68-
pass
69-
7067
else:
7168
assert False, "Unknown token type: %(type)s" % {"type": type}
7269

0 commit comments

Comments
 (0)