Skip to content

Commit f4ee9d3

Browse files
committed
Check whether what we want is available, not interlinking things.
1 parent a11981a commit f4ee9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/inputstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def readChunk(self, chunkSize=None):
281281
self._bufferedCharacter = data[-1]
282282
data = data[:-1]
283283

284-
if utils.supports_lone_surrogates:
284+
if self.reportCharacterErrors:
285285
self.reportCharacterErrors(data)
286286

287287
# Replace invalid characters

0 commit comments

Comments
 (0)