summaryrefslogtreecommitdiffstats
path: root/Lib/codecs.py
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2019-05-22 15:18:26 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-05-22 15:18:26 (GMT)
commitb3be4072888a4ce054993c2801802721466ea02d (patch)
treef59540b9a13da03566d2a9121ceb87ad6b1dcf88 /Lib/codecs.py
parent933e1509ec6efa8e6ab8c8c7ce02059ce2b6d9b9 (diff)
downloadcpython-b3be4072888a4ce054993c2801802721466ea02d.zip
cpython-b3be4072888a4ce054993c2801802721466ea02d.tar.gz
cpython-b3be4072888a4ce054993c2801802721466ea02d.tar.bz2
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
Diffstat (limited to 'Lib/codecs.py')
-rw-r--r--Lib/codecs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py
index 6b028ad..884be0b 100644
--- a/Lib/codecs.py
+++ b/Lib/codecs.py
@@ -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)