Staging
v0.8.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
_ctypes.vcproj -rw-r--r-- 13.8 KB
_ctypes_test.vcproj -rw-r--r-- 8.8 KB
_elementtree.vcproj -rw-r--r-- 11.7 KB
_hashlib.vcproj -rw-r--r-- 10.1 KB
_msi.vcproj -rw-r--r-- 9.3 KB
_multiprocessing.vcproj -rw-r--r-- 9.9 KB
_socket.vcproj -rw-r--r-- 9.4 KB
_sqlite3.vcproj -rw-r--r-- 11.3 KB
_ssl.vcproj -rw-r--r-- 10.1 KB
_testcapi.vcproj -rw-r--r-- 8.9 KB
_tkinter.vcproj -rw-r--r-- 9.9 KB
bdist_wininst.vcproj -rw-r--r-- 6.1 KB
build.bat -rw-r--r-- 488 bytes
build_env.bat -rw-r--r-- 25 bytes
build_pgo.bat -rw-r--r-- 1.1 KB
build_ssl.bat -rw-r--r-- 253 bytes
build_ssl.py -rw-r--r-- 9.0 KB
build_tkinter.py -rw-r--r-- 2.3 KB
bz2.vcproj -rw-r--r-- 10.9 KB
debug.vsprops -rw-r--r-- 325 bytes
env.bat -rw-r--r-- 163 bytes
field3.py -rw-r--r-- 974 bytes
idle.bat -rw-r--r-- 284 bytes
installer.bmp -rw-r--r-- 57.4 KB
kill_python.c -rw-r--r-- 5.5 KB
kill_python.vcproj -rw-r--r-- 4.8 KB
make_buildinfo.c -rw-r--r-- 4.7 KB
make_buildinfo.vcproj -rw-r--r-- 1.9 KB
make_versioninfo.vcproj -rw-r--r-- 7.1 KB
pcbuild.sln -rw-r--r-- 43.4 KB
pginstrument.vsprops -rw-r--r-- 955 bytes
pgupdate.vsprops -rw-r--r-- 393 bytes
pyd.vsprops -rw-r--r-- 679 bytes
pyd_d.vsprops -rw-r--r-- 869 bytes
pyexpat.vcproj -rw-r--r-- 10.6 KB
pyproject.vsprops -rw-r--r-- 2.0 KB
python.vcproj -rw-r--r-- 12.3 KB
python3dll.vcproj -rw-r--r-- 7.2 KB
pythoncore.vcproj -rw-r--r-- 38.1 KB
pythonw.vcproj -rw-r--r-- 11.9 KB
readme.txt -rw-r--r-- 14.6 KB
release.vsprops -rw-r--r-- 326 bytes
rmpyc.py -rw-r--r-- 598 bytes
rt.bat -rw-r--r-- 1.8 KB
select.vcproj -rw-r--r-- 9.5 KB
sqlite3.vcproj -rw-r--r-- 9.5 KB
sqlite3.vsprops -rw-r--r-- 388 bytes
ssl.vcproj -rw-r--r-- 5.1 KB
unicodedata.vcproj -rw-r--r-- 9.1 KB
vs9to8.py -rw-r--r-- 1.3 KB
w9xpopen.vcproj -rw-r--r-- 10.6 KB
winsound.vcproj -rw-r--r-- 9.1 KB
x64.vsprops -rw-r--r-- 559 bytes
xxlimited.vcproj -rw-r--r-- 7.6 KB

readme.txt

back to top