mirror of https://github.com/python/cpython.git
Issue #24608: chunk.Chunk.read() now always returns bytes, not str.
This commit is contained in:
parent
e0fd7ef6bb
commit
d44768ff16
|
@ -128,7 +128,7 @@ def read(self, size=-1):
|
|||
if self.closed:
|
||||
raise ValueError("I/O operation on closed file")
|
||||
if self.size_read >= self.chunksize:
|
||||
return ''
|
||||
return b''
|
||||
if size < 0:
|
||||
size = self.chunksize - self.size_read
|
||||
if size > self.chunksize - self.size_read:
|
||||
|
|
Loading…
Reference in New Issue