Skip to content

Commit c18094a

Browse files
committed
Fix the two cases of us using old-style classes on Python 2.
1 parent 9397de5 commit c18094a

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-
class BufferedStream:
46+
class BufferedStream(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
return HTMLBinaryInputStream(source, encoding, parseMeta, chardet)
133133

134134

135-
class HTMLUnicodeInputStream:
135+
class HTMLUnicodeInputStream(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)