]> granicus.if.org Git - python/log
python
11 years agoClose #6822: ftplib.FTP.storlines() expects a binary file, not a text file
Victor Stinner [Tue, 2 Apr 2013 20:13:27 +0000 (22:13 +0200)]
Close #6822: ftplib.FTP.storlines() expects a binary file, not a text file

Add an unit test to ensure that text files are rejectect (with TypeError)

11 years agolist slotdefs in offset order rather than sorting them (closes #17610)
Benjamin Peterson [Mon, 1 Apr 2013 21:41:41 +0000 (17:41 -0400)]
list slotdefs in offset order rather than sorting them (closes #17610)

This means we can remove our usage of qsort() than relied on undefined behavior.

11 years agoIssue #17357: Add missing verbosity messages when running under
Brett Cannon [Mon, 1 Apr 2013 17:10:51 +0000 (13:10 -0400)]
Issue #17357: Add missing verbosity messages when running under
-v/-vv that were lost in the transition to importlib.

11 years ago#6698: IDLE now opens just an editor window when configured to do so.
Roger Serwy [Mon, 1 Apr 2013 04:28:55 +0000 (23:28 -0500)]
#6698: IDLE now opens just an editor window when configured to do so.

11 years ago#8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception.
Roger Serwy [Sun, 31 Mar 2013 20:53:08 +0000 (15:53 -0500)]
#8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception.

11 years agoIssue #6419: Fix a test_kqueue failure on some BSD flavors.
Charles-Francois Natali [Sun, 31 Mar 2013 18:36:57 +0000 (20:36 +0200)]
Issue #6419: Fix a test_kqueue failure on some BSD flavors.

11 years agoSkip a test of an old API on ARM Linux that isn't supported by the OS.
Gregory P. Smith [Sun, 31 Mar 2013 17:10:50 +0000 (10:10 -0700)]
Skip a test of an old API on ARM Linux that isn't supported by the OS.

11 years ago#6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo.
Roger Serwy [Sun, 31 Mar 2013 06:00:15 +0000 (01:00 -0500)]
#6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo.

11 years agoIssue #17390: Display Python version on Idle title bar. Patch by Edmond Burnett.
Terry Jan Reedy [Sat, 30 Mar 2013 22:32:19 +0000 (18:32 -0400)]
Issue #17390: Display Python version on Idle title bar. Patch by Edmond Burnett.

11 years agoIssue #17435: Don't use mutable default values in Timer.
R David Murray [Sat, 30 Mar 2013 21:19:38 +0000 (17:19 -0400)]
Issue #17435: Don't use mutable default values in Timer.

Patch by Denver Coneybeare with some test modifications by me.

11 years agoUpdated logging cookbook with additional example for output using str.format().
Vinay Sajip [Sat, 30 Mar 2013 11:56:18 +0000 (11:56 +0000)]
Updated logging cookbook with additional example for output using str.format().

11 years ago#17539: fix MagicMock example. Patch by Berker Peksag.
Ezio Melotti [Sat, 30 Mar 2013 03:55:52 +0000 (05:55 +0200)]
#17539: fix MagicMock example.  Patch by Berker Peksag.

11 years ago#17526: fix an IndexError raised while passing code without filename to inspect.finds...
Ezio Melotti [Sat, 30 Mar 2013 03:17:24 +0000 (05:17 +0200)]
#17526: fix an IndexError raised while passing code without filename to inspect.findsource().  Initial patch by Tyler Doyle.

11 years ago#17564: skip test_bad_address unless the tests are run with -unetwork/-uall.
Ezio Melotti [Fri, 29 Mar 2013 23:28:40 +0000 (01:28 +0200)]
#17564: skip test_bad_address unless the tests are run with -unetwork/-uall.

11 years agoIssue #17540: Added style to Formatter configuration by dict.
Vinay Sajip [Fri, 29 Mar 2013 17:56:54 +0000 (17:56 +0000)]
Issue #17540: Added style to Formatter configuration by dict.

11 years ago#17438: add links to the conversion tables in dump(s)/load(s).
Ezio Melotti [Fri, 29 Mar 2013 01:59:29 +0000 (03:59 +0200)]
#17438: add links to the conversion tables in dump(s)/load(s).

11 years ago#8906: document failureException, longMessage, and maxDiff in the class docstring...
Ezio Melotti [Fri, 29 Mar 2013 01:42:29 +0000 (03:42 +0200)]
#8906: document failureException, longMessage, and maxDiff in the class docstring.  Patch by Boris Feld.

11 years agoUpdate the suspicious builder to detect unused rules, and remove currently unusued...
Ezio Melotti [Thu, 28 Mar 2013 15:40:24 +0000 (17:40 +0200)]
Update the suspicious builder to detect unused rules, and remove currently unusued rules.

11 years agoCloses #4159: add LaTeX tabular column specifications to tables that otherwise are...
Georg Brandl [Thu, 28 Mar 2013 12:28:44 +0000 (13:28 +0100)]
Closes #4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text.

11 years agoFix XML vulnerability link targets.
Georg Brandl [Thu, 28 Mar 2013 08:11:44 +0000 (09:11 +0100)]
Fix XML vulnerability link targets.

11 years agoUpdate suspicious ignore file.
Ezio Melotti [Thu, 28 Mar 2013 02:54:58 +0000 (04:54 +0200)]
Update suspicious ignore file.

11 years agoUpdate suspicious ignore file.
Ezio Melotti [Thu, 28 Mar 2013 02:31:53 +0000 (04:31 +0200)]
Update suspicious ignore file.

11 years ago#17329: merge with 3.2.
Ezio Melotti [Wed, 27 Mar 2013 18:12:55 +0000 (20:12 +0200)]
#17329: merge with 3.2.

11 years ago#17329: document unittest.SkipTest. Initial patch by Zachary Ware.
Ezio Melotti [Wed, 27 Mar 2013 18:11:55 +0000 (20:11 +0200)]
#17329: document unittest.SkipTest.  Initial patch by Zachary Ware.

11 years agoIssue 17538: Document XML vulnerabilties
Christian Heimes [Tue, 26 Mar 2013 16:47:23 +0000 (17:47 +0100)]
Issue 17538: Document XML vulnerabilties

11 years agoIssue 17538: Document XML vulnerabilties
Christian Heimes [Tue, 26 Mar 2013 16:35:55 +0000 (17:35 +0100)]
Issue 17538: Document XML vulnerabilties

11 years agoNEWS: add new header for Python 3.3.2
Georg Brandl [Tue, 26 Mar 2013 13:09:40 +0000 (14:09 +0100)]
NEWS: add new header for Python 3.3.2

11 years agomove to correct section
Benjamin Peterson [Tue, 26 Mar 2013 12:57:42 +0000 (08:57 -0400)]
move to correct section

11 years agofix variable reference to fix --enable-profiling (closes #17550)
Benjamin Peterson [Tue, 26 Mar 2013 12:55:37 +0000 (08:55 -0400)]
fix variable reference to fix --enable-profiling (closes #17550)

11 years agoAdd versionadded for `-X faulthandler` (also fix typo and markup).
Ezio Melotti [Tue, 26 Mar 2013 00:36:28 +0000 (02:36 +0200)]
Add versionadded for `-X faulthandler` (also fix typo and markup).

11 years agoAdd missing docstrings to the collections ABCs
Raymond Hettinger [Sun, 24 Mar 2013 22:20:29 +0000 (15:20 -0700)]
Add missing docstrings to the collections ABCs

11 years agoFix typo
Martin v. Löwis [Sun, 24 Mar 2013 21:52:14 +0000 (22:52 +0100)]
Fix typo

11 years agoIssue #17425: Build with openssl 1.0.1d on Windows.
Martin v. Löwis [Sun, 24 Mar 2013 21:45:50 +0000 (22:45 +0100)]
Issue #17425: Build with openssl 1.0.1d on Windows.

11 years ago#17425: null merge 3.2
Martin v. Loewis [Sun, 24 Mar 2013 21:10:20 +0000 (22:10 +0100)]
#17425: null merge 3.2

11 years agoIssue #17425: Build with openssl 1.0.0k on Windows.
Martin v. Loewis [Sun, 24 Mar 2013 21:03:30 +0000 (22:03 +0100)]
Issue #17425: Build with openssl 1.0.0k on Windows.

11 years ago- Issue #17536: Add to webbrowser's browser list: www-browser, x-www-browser,
doko@ubuntu.com [Sun, 24 Mar 2013 17:46:49 +0000 (18:46 +0100)]
- Issue #17536: Add to webbrowser's browser list: www-browser, x-www-browser,
  iceweasel, iceape.

11 years ago#17504: remove duplicated sentence. Patch by Radu Voicilas.
Ezio Melotti [Sun, 24 Mar 2013 14:10:24 +0000 (16:10 +0200)]
#17504: remove duplicated sentence.  Patch by Radu Voicilas.

11 years agoFixes issue4653 - Correctly specify the buffer size to FormatMessageW and
Gregory P. Smith [Sat, 23 Mar 2013 23:05:36 +0000 (16:05 -0700)]
Fixes issue4653 - Correctly specify the buffer size to FormatMessageW and
correctly check for errors on two CreateFileMapping calls.

11 years agoMerge test_queue clean up from 3.2.
Ezio Melotti [Sat, 23 Mar 2013 21:36:23 +0000 (23:36 +0200)]
Merge test_queue clean up from 3.2.

11 years agoClean up references to threads in test_queue.
Ezio Melotti [Sat, 23 Mar 2013 21:35:06 +0000 (23:35 +0200)]
Clean up references to threads in test_queue.

11 years agoFixes issue #17488: Change the subprocess.Popen bufsize parameter default value
Gregory P. Smith [Sat, 23 Mar 2013 18:54:22 +0000 (11:54 -0700)]
Fixes issue #17488: Change the subprocess.Popen bufsize parameter default value
from unbuffered (0) to buffering (-1) to match the behavior existing code
expects and match the behavior of the subprocess module in Python 2 to avoid
introducing hard to track down bugs.

11 years agoFixes issue #17488: Change the subprocess.Popen bufsize parameter default value
Gregory P. Smith [Sat, 23 Mar 2013 18:44:25 +0000 (11:44 -0700)]
Fixes issue #17488: Change the subprocess.Popen bufsize parameter default value
from unbuffered (0) to buffering (-1) to match the behavior existing code
expects and match the behavior of the subprocess module in Python 2 to avoid
introducing hard to track down bugs.

11 years agoUpdate collections ABC table to match the __abstractmethods__ attribute for each...
Raymond Hettinger [Sat, 23 Mar 2013 16:07:36 +0000 (09:07 -0700)]
Update collections ABC table to match the __abstractmethods__ attribute for each container.

11 years agoIssue 17447: Clarify that str.isidentifier doesn't check for reserved keywords.
Raymond Hettinger [Sat, 23 Mar 2013 15:21:12 +0000 (08:21 -0700)]
Issue 17447:  Clarify that str.isidentifier doesn't check for reserved keywords.

11 years ago#17479: test_io now works with unittest test discovery. Patch by Zachary Ware.
Ezio Melotti [Sat, 23 Mar 2013 14:30:16 +0000 (16:30 +0200)]
#17479: test_io now works with unittest test discovery.  Patch by Zachary Ware.

11 years agoBackport improved dict comparison logic
Raymond Hettinger [Sat, 23 Mar 2013 13:34:19 +0000 (06:34 -0700)]
Backport improved dict comparison logic

11 years agoIssue #17521: Merged fix from 3.2.
Vinay Sajip [Sat, 23 Mar 2013 11:22:00 +0000 (11:22 +0000)]
Issue #17521: Merged fix from 3.2.

11 years agoIssue #17521: Corrected non-enabling of logger following two calls to fileConfig().
Vinay Sajip [Sat, 23 Mar 2013 11:18:45 +0000 (11:18 +0000)]
Issue #17521: Corrected non-enabling of logger following two calls to fileConfig().

11 years agoMerged Misc/NEWS update for #17508.
Vinay Sajip [Sat, 23 Mar 2013 10:59:49 +0000 (10:59 +0000)]
Merged Misc/NEWS update for #17508.

11 years agoUpdated Misc/NEWS with #17508.
Vinay Sajip [Sat, 23 Mar 2013 10:57:47 +0000 (10:57 +0000)]
Updated Misc/NEWS with #17508.

11 years agocleanup references to PyString_ APIs from 2.x in the 3.3 docs.
Gregory P. Smith [Fri, 22 Mar 2013 20:49:26 +0000 (13:49 -0700)]
cleanup references to PyString_ APIs from 2.x in the 3.3 docs.

11 years agoClean up references to the no longer existing PyString_ APIs in our docs.
Gregory P. Smith [Fri, 22 Mar 2013 20:43:30 +0000 (13:43 -0700)]
Clean up references to the no longer existing PyString_ APIs in our docs.

11 years agoIssue #17508: Merged fix from 3.2.
Vinay Sajip [Fri, 22 Mar 2013 15:23:13 +0000 (15:23 +0000)]
Issue #17508: Merged fix from 3.2.

11 years agoIssue #17508: Handled out-of-order handler configuration correctly.
Vinay Sajip [Fri, 22 Mar 2013 15:19:54 +0000 (15:19 +0000)]
Issue #17508: Handled out-of-order handler configuration correctly.

11 years agoModernize unittest example
Raymond Hettinger [Fri, 22 Mar 2013 14:26:18 +0000 (07:26 -0700)]
Modernize unittest example

11 years ago- Issue #16754: Fix the incorrect shared library extension on linux. Introduce
doko@ubuntu.com [Thu, 21 Mar 2013 20:31:41 +0000 (13:31 -0700)]
- Issue #16754: Fix the incorrect shared library extension on linux. Introduce
  two makefile macros SHLIB_SUFFIX and EXT_SUFFIX. SO now has the value of
  SHLIB_SUFFIX again (as in 2.x and 3.1). The SO macro is removed in 3.4.

11 years ago- Issue #16754: Fix the incorrect shared library extension on linux. Introduce
doko@ubuntu.com [Thu, 21 Mar 2013 20:21:49 +0000 (13:21 -0700)]
- Issue #16754: Fix the incorrect shared library extension on linux. Introduce
  two makefile macros SHLIB_SUFFIX and EXT_SUFFIX. SO now has the value of
  SHLIB_SUFFIX again (as in 2.x and 3.1). The SO macro is removed in 3.4.

11 years agoIssue #17209: curses.window.get_wch() now handles correctly KeyboardInterrupt (CTRL+c)
Victor Stinner [Thu, 21 Mar 2013 11:21:06 +0000 (12:21 +0100)]
Issue #17209: curses.window.get_wch() now handles correctly KeyboardInterrupt (CTRL+c)

11 years ago#5713: One more test_smtplib timing fix.
R David Murray [Thu, 21 Mar 2013 04:32:31 +0000 (00:32 -0400)]
#5713: One more test_smtplib timing fix.

11 years agoMerge: #5712: Preemptively fix some other possible timing issues.
R David Murray [Thu, 21 Mar 2013 02:12:14 +0000 (22:12 -0400)]
Merge: #5712: Preemptively fix some other possible timing issues.

11 years ago#5712: Preemptively fix some other possible timing issues.
R David Murray [Thu, 21 Mar 2013 02:11:40 +0000 (22:11 -0400)]
#5712: Preemptively fix some other possible timing issues.

11 years agoMerge: #5713: fix timing issue in smtplib tests.
R David Murray [Thu, 21 Mar 2013 01:55:14 +0000 (21:55 -0400)]
Merge: #5713: fix timing issue in smtplib tests.

11 years ago#5713: fix timing issue in smtplib tests.
R David Murray [Thu, 21 Mar 2013 01:54:05 +0000 (21:54 -0400)]
#5713: fix timing issue in smtplib tests.

11 years agomerge
Gregory P. Smith [Thu, 21 Mar 2013 01:32:22 +0000 (18:32 -0700)]
merge

11 years agoremove the long obsolete mention of universal newlines mode only being
Gregory P. Smith [Thu, 21 Mar 2013 01:32:03 +0000 (18:32 -0700)]
remove the long obsolete mention of universal newlines mode only being
available when configured at compile time.

11 years agoMerge: #5713: Handle 421 error codes during sendmail by closing the socket.
R David Murray [Thu, 21 Mar 2013 01:12:17 +0000 (21:12 -0400)]
Merge: #5713: Handle 421 error codes during sendmail by closing the socket.

This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.

Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.

11 years ago#5713: Handle 421 error codes during sendmail by closing the socket.
R David Murray [Thu, 21 Mar 2013 00:36:14 +0000 (20:36 -0400)]
#5713: Handle 421 error codes during sendmail by closing the socket.

This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.

Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.

11 years ago- .hgtouch: Add dependencies for GRAMMAR_H and GRAMMAR_C
doko@ubuntu.com [Wed, 20 Mar 2013 19:38:50 +0000 (12:38 -0700)]
- .hgtouch: Add dependencies for GRAMMAR_H and GRAMMAR_C

11 years ago#17493: merge with 3.2.
Ezio Melotti [Wed, 20 Mar 2013 16:15:37 +0000 (18:15 +0200)]
#17493: merge with 3.2.

11 years ago#17493: re-enable a test on Windows. Patch by Zachary Ware.
Ezio Melotti [Wed, 20 Mar 2013 16:14:48 +0000 (18:14 +0200)]
#17493: re-enable a test on Windows.  Patch by Zachary Ware.

11 years agoMerge usage of argument/parameter and markup fixes from 3.2.
Ezio Melotti [Wed, 20 Mar 2013 11:54:18 +0000 (13:54 +0200)]
Merge usage of argument/parameter and markup fixes from 3.2.

11 years agoFix usage of argument/parameter and markup.
Ezio Melotti [Wed, 20 Mar 2013 11:53:32 +0000 (13:53 +0200)]
Fix usage of argument/parameter and markup.

11 years agoclarifiy the documentation for issue17285. see also commit
Gregory P. Smith [Wed, 20 Mar 2013 06:36:31 +0000 (23:36 -0700)]
clarifiy the documentation for issue17285. see also commit
ee30400efceb which updated the docstring.

11 years agoUse a larger amount of data for tests such as the interrupted_write
Gregory P. Smith [Wed, 20 Mar 2013 06:25:16 +0000 (23:25 -0700)]
Use a larger amount of data for tests such as the interrupted_write
tests that depend on filling up an OS pipe so that they work properly
on systems configured with large pipe buffers.

11 years agoAutomated merge with file:///Users/skumaran/python/cpython
Senthil Kumaran [Wed, 20 Mar 2013 04:27:23 +0000 (21:27 -0700)]
Automated merge with file:///Users/skumaran/python/cpython

11 years agoIssue #15038 : Fixing the condition broadcast and docs.
Kristján Valur Jónsson [Wed, 20 Mar 2013 03:18:37 +0000 (20:18 -0700)]
Issue #15038 : Fixing the condition broadcast and docs.

11 years ago#17474 - Mark the deprecated Request methods as deprecated-removed. Review by Ezio...
Senthil Kumaran [Wed, 20 Mar 2013 01:01:43 +0000 (18:01 -0700)]
#17474 - Mark the deprecated Request methods as deprecated-removed. Review by Ezio Melotti

11 years ago#17471 - merge from 3.2
Senthil Kumaran [Tue, 19 Mar 2013 23:46:34 +0000 (16:46 -0700)]
#17471 - merge from 3.2

11 years agoMerge with 3.2
Kristján Valur Jónsson [Tue, 19 Mar 2013 23:34:39 +0000 (16:34 -0700)]
Merge with 3.2

11 years ago#17471 - Increasing the urllib.error test coverage. Bringing it to 100%. Based on...
Senthil Kumaran [Tue, 19 Mar 2013 23:11:07 +0000 (16:11 -0700)]
#17471 - Increasing the urllib.error test coverage. Bringing it to 100%. Based on patch contributed by Daniel Wozniak

11 years agoMerge
Kristján Valur Jónsson [Tue, 19 Mar 2013 23:00:01 +0000 (16:00 -0700)]
Merge

11 years agoMerge
Kristján Valur Jónsson [Tue, 19 Mar 2013 22:57:19 +0000 (15:57 -0700)]
Merge

11 years ago#10296: Merge to 3.3
Kristján Valur Jónsson [Tue, 19 Mar 2013 22:35:28 +0000 (15:35 -0700)]
#10296: Merge to 3.3

11 years agomerge from 3.2
Gregory P. Smith [Tue, 19 Mar 2013 22:30:41 +0000 (15:30 -0700)]
merge from 3.2

11 years agomerge heads
Gregory P. Smith [Tue, 19 Mar 2013 22:25:46 +0000 (15:25 -0700)]
merge heads

11 years agomerge heads
Gregory P. Smith [Tue, 19 Mar 2013 22:25:28 +0000 (15:25 -0700)]
merge heads

11 years agoIssue #10296 : Don't handle BreakPoint exceptions using
Kristján Valur Jónsson [Tue, 19 Mar 2013 22:24:10 +0000 (15:24 -0700)]
Issue #10296 : Don't handle BreakPoint exceptions using
Structured Exception Handling on windows.

11 years agoMerge: #1525919: Document MIMEText+set_payload encoding behavior.
R David Murray [Tue, 19 Mar 2013 22:21:22 +0000 (18:21 -0400)]
Merge: #1525919: Document MIMEText+set_payload encoding behavior.

11 years ago#1525919: Document MIMEText+set_payload encoding behavior.
R David Murray [Tue, 19 Mar 2013 22:18:55 +0000 (18:18 -0400)]
#1525919: Document MIMEText+set_payload encoding behavior.

11 years agomerge heads
Gregory P. Smith [Tue, 19 Mar 2013 22:07:22 +0000 (15:07 -0700)]
merge heads

11 years agomerge heads in 3.3
Gregory P. Smith [Tue, 19 Mar 2013 22:05:52 +0000 (15:05 -0700)]
merge heads in 3.3

11 years ago- update config.guess and config.sub
doko@ubuntu.com [Tue, 19 Mar 2013 22:03:26 +0000 (15:03 -0700)]
- update config.guess and config.sub

11 years agomerge heads in 3.2
Gregory P. Smith [Tue, 19 Mar 2013 22:03:26 +0000 (15:03 -0700)]
merge heads in 3.2

11 years agoFixes Issue #17192: Update the ctypes module's libffi to v3.0.13. This
Gregory P. Smith [Tue, 19 Mar 2013 21:59:02 +0000 (14:59 -0700)]
Fixes Issue #17192: Update the ctypes module's libffi to v3.0.13.  This
specifically addresses a stack misalignment issue on x86 and issues
on some more recent platforms.

11 years ago#17471 - merge from 3.2
Senthil Kumaran [Tue, 19 Mar 2013 20:44:17 +0000 (13:44 -0700)]
#17471 - merge from 3.2

11 years ago#17471 - Improve urllib2 test coverage. Patch contributed by Daniel Wozniak
Senthil Kumaran [Tue, 19 Mar 2013 20:43:42 +0000 (13:43 -0700)]
#17471 - Improve urllib2 test coverage. Patch contributed by Daniel Wozniak

11 years agoMerge: #8862: Fix curses cleanup with getchar is interrupted by a signal.
R David Murray [Tue, 19 Mar 2013 20:24:35 +0000 (16:24 -0400)]
Merge: #8862: Fix curses cleanup with getchar is interrupted by a signal.

I have no idea how one would write a test for this.

Patch by July Tikhonov.

11 years ago#8862: Fix curses cleanup with getchar is interrupted by a signal.
R David Murray [Tue, 19 Mar 2013 20:23:09 +0000 (16:23 -0400)]
#8862: Fix curses cleanup with getchar is interrupted by a signal.

I have no idea how one would write a test for this.

Patch by July Tikhonov.

11 years agoMerge: #17443: Fix buffering in IMAP4_stream.
R David Murray [Tue, 19 Mar 2013 17:56:01 +0000 (13:56 -0400)]
Merge: #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.

11 years ago#17443: Fix buffering in IMAP4_stream.
R David Murray [Tue, 19 Mar 2013 17:52:33 +0000 (13:52 -0400)]
#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.