This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JelleZijlstra
Recipients JelleZijlstra
Date 2018-05-13.14:33:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526222027.51.0.682650639539.issue33482@psf.upfronthosting.co.za>
In-reply-to
Content
codecs.StreamRecoder.writelines is implemented as:

    def writelines(self, list):

        data = ''.join(list)
        data, bytesdecoded = self.decode(data, self.errors)
        return self.writer.write(data)

It can't take a list of bytes because then the ''.join throws an error, and it can't take a list of str because self.decode takes bytes.

It looks like bytes are intended (self.write takes bytes), so I'll submit a simple PR to fix this.
History
Date User Action Args
2018-05-13 14:33:47JelleZijlstrasetrecipients: + JelleZijlstra
2018-05-13 14:33:47JelleZijlstrasetmessageid: <1526222027.51.0.682650639539.issue33482@psf.upfronthosting.co.za>
2018-05-13 14:33:47JelleZijlstralinkissue33482 messages
2018-05-13 14:33:47JelleZijlstracreate