Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
05121159
Commit
05121159
authored
Jul 10, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #24608: chunk.Chunk.read() now always returns bytes, not str.
parents
3d031e61
d44768ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Lib/chunk.py
Lib/chunk.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/chunk.py
View file @
05121159
...
@@ -128,7 +128,7 @@ class Chunk:
...
@@ -128,7 +128,7 @@ class Chunk:
if
self
.
closed
:
if
self
.
closed
:
raise
ValueError
(
"I/O operation on closed file"
)
raise
ValueError
(
"I/O operation on closed file"
)
if
self
.
size_read
>=
self
.
chunksize
:
if
self
.
size_read
>=
self
.
chunksize
:
return
''
return
b
''
if
size
<
0
:
if
size
<
0
:
size
=
self
.
chunksize
-
self
.
size_read
size
=
self
.
chunksize
-
self
.
size_read
if
size
>
self
.
chunksize
-
self
.
size_read
:
if
size
>
self
.
chunksize
-
self
.
size_read
:
...
...
Misc/NEWS
View file @
05121159
...
@@ -17,6 +17,8 @@ Core and Builtins
...
@@ -17,6 +17,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #24608: chunk.Chunk.read() now always returns bytes, not str.
- Issue #18684: Fixed reading out of the buffer in the re module.
- Issue #18684: Fixed reading out of the buffer in the re module.
- Issue #24259: tarfile now raises a ReadError if an archive is truncated
- Issue #24259: tarfile now raises a ReadError if an archive is truncated
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment