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
1f4560c8
Commit
1f4560c8
authored
May 24, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #1441530: In imaplib, read the data in one chunk to speed up large
reads and simplify code.
parent
17dc8195
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
Lib/imaplib.py
Lib/imaplib.py
+1
-9
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/imaplib.py
View file @
1f4560c8
...
...
@@ -249,15 +249,7 @@ class IMAP4:
def
read
(
self
,
size
):
"""Read 'size' bytes from remote."""
chunks
=
[]
read
=
0
while
read
<
size
:
data
=
self
.
file
.
read
(
min
(
size
-
read
,
4096
))
if
not
data
:
break
read
+=
len
(
data
)
chunks
.
append
(
data
)
return
b''
.
join
(
chunks
)
return
self
.
file
.
read
(
size
)
def
readline
(
self
):
...
...
Misc/NEWS
View file @
1f4560c8
...
...
@@ -161,6 +161,9 @@ Core and Builtins
Library
-------
- Issue #1441530: In imaplib, read the data in one chunk to speed up large
reads and simplify code.
- Issue #12070: Fix the Makefile parser of the sysconfig module to handle
correctly references to "bogus variable" (e.g. "prefix=$/opt/python").
...
...
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