summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-03-19 17:52:33 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-03-19 17:52:33 (GMT)
commitfcb6d6a3b3bfba67927ced18dd648ba889e14f4c (patch)
tree2fd07ed3bc58201cfb53ad8046c83a80bdec4bd4 /Misc
parentae4ef4d2ff2d49628516294837249493f43a5047 (diff)
downloadcpython-fcb6d6a3b3bfba67927ced18dd648ba889e14f4c.zip
cpython-fcb6d6a3b3bfba67927ced18dd648ba889e14f4c.tar.gz
cpython-fcb6d6a3b3bfba67927ced18dd648ba889e14f4c.tar.bz2
#17443: Fix buffering in IMAP4_stream.
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS4
2 files changed, 5 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index b5c8059..6ea3f78 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1098,6 +1098,7 @@ Richard Townsend
Nathan Trapuzzano
Laurence Tratt
John Tromp
+Diane Trout
Jason Trowbridge
Brent Tubbs
Anthony Tuininga
diff --git a/Misc/NEWS b/Misc/NEWS
index 5e36c42..9a62a02 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -233,6 +233,10 @@ Core and Builtins
Library
-------
+- Issue #17443: impalib.IMAP4_stream was using the default unbuffered IO
+ in subprocess, but the imap code assumes buffered IO. In Python2 this
+ worked by accident. IMAP4_stream now explicitly uses buffered IO.
+
- Issue #17476: Fixed regression relative to Python2 in undocumented pydoc
'allmethods'; it was missing unbound methods on the class.