Skip to content

Commit d06a2f9

Browse files
authored
Remove duplicate check for self.cdata_elem
This was already checked in the line above
1 parent 3ff35ba commit d06a2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/html/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def goahead(self, end):
243243
assert 0, "interesting.search() lied"
244244
# end while
245245
if end and i < n and not self.cdata_elem:
246-
if self.convert_charrefs and not self.cdata_elem:
246+
if self.convert_charrefs:
247247
self.handle_data(unescape(rawdata[i:n]))
248248
else:
249249
self.handle_data(rawdata[i:n])

0 commit comments

Comments
 (0)