Staging
v0.5.1
swh:1:snp:635f4099902912592851108bcac178ff574f7c5f
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: 550e4673be538d98b6ddf5550b3922539cf5c4b2 authored by Victor Stinner on 08 December 2020, 23:32:54 UTC
bpo-32381: Add _PyRun_SimpleFileObject() (GH-23709)
Tip revision: 550e467
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