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
d44768ff
Commit
d44768ff
authored
Jul 10, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24608: chunk.Chunk.read() now always returns bytes, not str.
parent
e0fd7ef6
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 @
d44768ff
...
...
@@ -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
:
...
...
Misc/NEWS
View file @
d44768ff
...
...
@@ -66,6 +66,8 @@ Core and Builtins
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
#
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