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
2747b2f2
Commit
2747b2f2
authored
Sep 30, 2012
by
Nadeem Vawda
Browse files
Options
Browse Files
Download
Plain Diff
Merge: Fix the return value of BZ2File._read_block() to be consistent with comments.
parents
1e0a88a1
9e2a28ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Lib/bz2.py
Lib/bz2.py
+1
-1
No files found.
Lib/bz2.py
View file @
2747b2f2
...
...
@@ -226,7 +226,7 @@ class BZ2File(io.BufferedIOBase):
data
=
self
.
_buffer
[
self
.
_buffer_offset
:
end
]
self
.
_buffer_offset
=
end
self
.
_pos
+=
len
(
data
)
return
data
return
data
if
return_data
else
None
# The loop assumes that _buffer_offset is 0. Ensure that this is true.
self
.
_buffer
=
self
.
_buffer
[
self
.
_buffer_offset
:]
...
...
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