8000 removed unicode prefix · valievkarim/html5lib-python@ab43618 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab43618

Browse files
committed
removed unicode prefix
1 parent fd101b9 commit ab43618

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

html5lib/tokenizer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def rcdataState(self):
306306
# have already been appended to lastFourChars and will have broken
307307
# any <!-- or --> sequences
308308
else:
309-
chars = self.stream.charsUntil(("&", "<", u"\u0000"))
309+
chars = self.stream.charsUntil(("&", "<", "\u0000"))
310310
self.tokenQueue.append({"type": tokenTypes["Characters"], "data":
311311
data + chars})
312312
return True
@@ -1016,7 +1016,7 @@ def attributeValueDoubleQuotedState(self):
10161016
self.state = self.dataState
10171017
else:
10181018
self.currentToken["data"][-1][1] += data +\
1019-
self.stream.charsUntil(("\"", "&", u"\u0000"))
1019+
self.stream.charsUntil(("\"", "&", "\u0000"))
10201020
return True
10211021

10221022
def attributeValueSingleQuotedState(self):
@@ -1035,7 +1035,7 @@ def attributeValueSingleQuotedState(self):
10351035
self.state = self.dataState
10361036
else:
10371037
self.currentToken["data"][-1][1] += data +\
1038-
self.stream.charsUntil(("'", "&", u"\u0000"))
1038+
self.stream.charsUntil(("'", "&", "\u0000"))
10391039
return True
10401040

10411041
def attributeValueUnQuotedState(self):

0 commit comments

Comments
 (0)
0