Skip to content

Commit abf96c7

Browse files
committed
Fix two missed six.text_type references.
1 parent 76b7eb0 commit abf96c7

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
@@ -130,9 +130,9 @@ def HTMLInputStream(source, **kwargs):
130130
isinstance(source.fp, http.client.HTTPResponse))):
131131
isUnicode = False
132132
elif hasattr(source, "read"):
133-
isUnicode = isinstance(source.read(0), text_type)
133+
isUnicode = isinstance(source.read(0), str)
134134
else:
135-
isUnicode = isinstance(source, text_type)
135+
isUnicode = isinstance(source, str)
136136

137137
if isUnicode:
138138
encodings = [x for x in kwargs if x.endswith("_encoding")]

0 commit comments

Comments
 (0)