Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit d876256

Browse files
committed
Fixed tokeniser from recent merge
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%401249
1 parent 2a4154e commit d876256

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/html5lib/inputstream.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from constants import EOF, spaceCharacters, asciiLetters, asciiUppercase
66
from constants import encodings
7-
from utils import MethodDispatcher
87

98
#Non-unicode versions of constants for use in the pre-parser
109
spaceCharactersBytes = [str(item) for item in spaceCharacters]

src/html5lib/tokenizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def beforeAttributeValueState(self):
615615
elif data == u"'":
616616
self.state = self.states["attributeValueSingleQuoted"]
617617
elif data == u">":
618-
self.tokenQueue.append({"type": "ParseError", "data":
618+
self.tokenQueue.append({"type": tokenTypes["ParseError"], "data":
619619
"expected-attribute-value-but-got-right-bracket"})
620620
self.emitCurrentToken()
621621
elif data == u"=":

0 commit comments

Comments
 (0)