Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0fd7ef commit d44768fCopy full SHA for d44768f
2 files changed
Lib/chunk.py
@@ -128,7 +128,7 @@ def read(self, size=-1):
128
if self.closed:
129
raise ValueError("I/O operation on closed file")
130
if self.size_read >= self.chunksize:
131
- return ''
+ return b''
132
if size < 0:
133
size = self.chunksize - self.size_read
134
if size > self.chunksize - self.size_read:
Misc/NEWS
@@ -66,6 +66,8 @@ Core and Builtins
66
Library
67
-------
68
69
+- Issue #24608: chunk.Chunk.read() now always returns bytes, not str.
70
+
71
- Issue #18684: Fixed reading out of the buffer in the re module.
72
73
- Issue #24259: tarfile now raises a ReadError if an archive is truncated
0 commit comments