SF bug #
1235646: codecs.StreamRecoder.next() now reencodes the data it reads
from the input stream, so that the output is a byte string in the correct
encoding instead of a unicode string.
def next(self):
""" Return the next decoded line from the input stream."""
- return self.reader.next()
+ data = self.reader.next()
+ data, bytesencoded = self.encode(data, self.errors)
+ return data
def __iter__(self):
return self
about illegal code points. The codec now supports PEP 293 style error
handlers.
+- Bug #1235646: ``codecs.StreamRecoder.next()`` now reencodes the data it reads
+ from the input stream, so that the output is a byte string in the correct
+ encoding instead of a unicode string.
Build
-----