Staging
v0.5.1
https://github.com/python/cpython
Revision fcb6d6a3b3bfba67927ced18dd648ba889e14f4c authored by R David Murray on 19 March 2013, 17:52:33 UTC, committed by R David Murray on 19 March 2013, 17:52:33 UTC
In Python2 Popen uses *FILE objects, which wind up buffering even though
subprocess defaults to no buffering.  In Python3, subprocess streams really
are unbuffered by default, but the imaplib code assumes read is buffered.  This
patch uses the default buffer size from the io module to get buffered streams
from Popen.

Much debugging work and patch by Diane Trout.

The imap protocol is too complicated to write a test for this simple
change with our current level of test infrastructure.
1 parent ae4ef4d
History
Tip revision: fcb6d6a3b3bfba67927ced18dd648ba889e14f4c authored by R David Murray on 19 March 2013, 17:52:33 UTC
#17443: Fix buffering in IMAP4_stream.
Tip revision: fcb6d6a
File Mode Size
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.bzrignore -rw-r--r-- 602 bytes
.gitignore -rw-r--r-- 861 bytes
.hgeol -rw-r--r-- 650 bytes
.hgignore -rw-r--r-- 909 bytes
.hgtags -rw-r--r-- 4.8 KB
LICENSE -rw-r--r-- 14.5 KB
Makefile.pre.in -rw-r--r-- 43.9 KB
README -rw-r--r-- 6.5 KB
configure -rwxr-xr-x 402.4 KB
configure.ac -rw-r--r-- 124.8 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 34.4 KB
setup.py -rw-r--r-- 82.5 KB

README

back to top