Skip to content

Commit 80c9044

Browse files
committed
Fix #67: BufferedStream returns unicode string.
This is a simple case of using a unicode string to join where we should be using a bytes string.
1 parent c8feb51 commit 80c9044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/inputstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _readFromBuffer(self, bytes):
114114
if remainingBytes:
115115
rv.append(self._readStream(remainingBytes))
116116

117-
return "".join(rv)
117+
return b"".join(rv)
118118

119119

120120
def HTMLInputStream(source, encoding=None, parseMeta=True, chardet=True):

0 commit comments

Comments
 (0)