We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
six.text_type
1 parent 76b7eb0 commit abf96c7Copy full SHA for abf96c7
html5lib/_inputstream.py
@@ -130,9 +130,9 @@ def HTMLInputStream(source, **kwargs):
130
isinstance(source.fp, http.client.HTTPResponse))):
131
isUnicode = False
132
elif hasattr(source, "read"):
133
- isUnicode = isinstance(source.read(0), text_type)
+ isUnicode = isinstance(source.read(0), str)
134
else:
135
- isUnicode = isinstance(source, text_type)
+ isUnicode = isinstance(source, str)
136
137
if isUnicode:
138
encodings = [x for x in kwargs if x.endswith("_encoding")]
0 commit comments