We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b7e017 commit 04ff4c1Copy full SHA for 04ff4c1
1 file changed
html5lib/inputstream.py
@@ -430,6 +430,7 @@ def __init__(self, source, encoding=None, parseMeta=True, chardet=True):
430
# Detect encoding iff no explicit "transport level" encoding is supplied
431
if (self.charEncoding[0] is None):
432
self.charEncoding = self.detectEncoding(parseMeta, chardet)
433
+ assert self.charEncoding[0] is not None
434
435
# Call superclass
436
self.reset()
0 commit comments