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

Commitc18094a

Browse files
committed
Fix the two cases of us using old-style classes on Python 2.
1 parent9397de5 commitc18094a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎html5lib/inputstream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class BufferedIOBase(object):
4343
charsUntilRegEx= {}
4444

4545

46-
classBufferedStream:
46+
classBufferedStream(object):
4747
"""Buffering for streams that do not have buffering of their own
4848
4949
The buffer is implemented as a list of chunks on the assumption that
@@ -132,7 +132,7 @@ def HTMLInputStream(source, encoding=None, parseMeta=True, chardet=True):
132132
returnHTMLBinaryInputStream(source,encoding,parseMeta,chardet)
133133

134134

135-
classHTMLUnicodeInputStream:
135+
classHTMLUnicodeInputStream(object):
136136
"""Provides a unicode stream of characters to the HTMLTokenizer.
137137
138138
This class takes care of character encoding and removing or replacing

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp