]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fixed a small bug introduced by r62778.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Tue, 6 May 2008 23:47:23 +0000 (23:47 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Tue, 6 May 2008 23:47:23 +0000 (23:47 +0000)
commit4833b3c37fc0d33f8f3f37a9b7526150a7c64b8c
tree9cd8c04da7cf8dcc311f919187181ed3139db5c2
parent8dc226fccd2183670ac19a85b89941f5b05167dc
Fixed a small bug introduced by r62778.

One of the codepaths of _BytesIO.read() returned a bytearray
object, by mistake, when it should always return a bytes object.
Interestingly, the fact this bug shown up probably means that
some platforms are not using the new C-accelerated io.BytesIO.
Lib/io.py
Lib/test/test_memoryio.py