Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit04ff4c1

Browse files
committed
assert that after assigning self.charEncoding it's not None
1 parent3b7e017 commit04ff4c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎html5lib/inputstream.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ def __init__(self, source, encoding=None, parseMeta=True, chardet=True):
430430
# Detect encoding iff no explicit "transport level" encoding is supplied
431431
if (self.charEncoding[0]isNone):
432432
self.charEncoding=self.detectEncoding(parseMeta,chardet)
433+
assertself.charEncoding[0]isnotNone
433434

434435
# Call superclass
435436
self.reset()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp