Skip to content

Commit 80c9044

Browse files
committed
Fix html5lib#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy