diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-07-10 19:24:47 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-07-10 19:24:47 (GMT) |
commit | d44768ff16131c17bb9dc277840a94810a87b6a9 (patch) | |
tree | 9d6fa9fe2a61c7e7d9384632223ddc2d2f10910e /Lib/chunk.py | |
parent | e0fd7ef6bb0ddfc36337f434ae6bbfc5c0b60afa (diff) | |
download | cpython-d44768ff16131c17bb9dc277840a94810a87b6a9.zip cpython-d44768ff16131c17bb9dc277840a94810a87b6a9.tar.gz cpython-d44768ff16131c17bb9dc277840a94810a87b6a9.tar.bz2 |
Issue #24608: chunk.Chunk.read() now always returns bytes, not str.
Diffstat (limited to 'Lib/chunk.py')
-rw-r--r-- | Lib/chunk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/chunk.py b/Lib/chunk.py index 98187b2..84b77cc 100644 --- a/Lib/chunk.py +++ b/Lib/chunk.py @@ -128,7 +128,7 @@ class Chunk: 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: |