mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
bpo-33482: fix codecs.StreamRecoder.writelines (GH-6779)
A very simple fix. I found this while writing typeshed stubs for StreamRecoder. https://bugs.python.org/issue33482
This commit is contained in:
parent
933e1509ec
commit
b3be407288
3 changed files with 23 additions and 1 deletions
|
@ -838,7 +838,7 @@ class StreamRecoder:
|
|||
|
||||
def writelines(self, list):
|
||||
|
||||
data = ''.join(list)
|
||||
data = b''.join(list)
|
||||
data, bytesdecoded = self.decode(data, self.errors)
|
||||
return self.writer.write(data)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue