R David Murray [Sat, 8 Feb 2014 18:12:00 +0000 (13:12 -0500)]
#16983: Apply postel's law to encoded words inside quoted strings.
This applies only to the new parser. The old parser decodes encoded words
inside quoted strings already, although it gets the whitespace wrong
when it does so.
This version of the patch only handles the most common case (a single encoded
word surrounded by quotes), but I haven't seen any other variations of this in
the wild yet, so its good enough for now.
R David Murray [Sat, 8 Feb 2014 16:48:20 +0000 (11:48 -0500)]
#19772: Do not mutate message when downcoding to 7bit.
This is a bit of an ugly hack because of the way generator pieces together the
output message. The deepcopys aren't too expensive, though, because we know it
is only called on messages that are not multiparts, and the payload (the thing
that could be large) is an immutable object.
Test and preliminary work on patch by Vajrasky Kok.
R David Murray [Fri, 7 Feb 2014 18:47:40 +0000 (13:47 -0500)]
#20013: don't raise socket error when selected mailbox deleted.
I'm checking this in without a test because not much of this code
is tested and I don't have time to work up the necessary extensions
to the existing test framework.
The patch itself was tested by the person who reported the bug.
Issue #19920: TarFile.list() no longer fails when outputs a listing
containing non-encodable characters. Added tests for TarFile.list().
Based on patch by Vajrasky Kok.
Skip expr* tests for large integers for Tcl <8.5.
The '**' operator is available only since 8.5 and in any case such large
integers are not supported on Tcl <8.5.
Serhiy Storchaka [Mon, 27 Jan 2014 09:18:27 +0000 (11:18 +0200)]
Issue #19077: tempfile.TemporaryDirectory cleanup is now most likely
successful when called during nulling out of modules during shutdown.
Misleading exception no longer raised when resource warning is emitted
during shutdown.
Terry Jan Reedy [Mon, 27 Jan 2014 03:24:26 +0000 (22:24 -0500)]
Issue #17721: Remove non-functional configuration dialog help button until we
make it actually gives some help when clicked. Patch by Guilherme Simões.
Serhiy Storchaka [Sun, 26 Jan 2014 17:21:00 +0000 (19:21 +0200)]
Issue #8260: The read(), readline() and readlines() methods of
codecs.StreamReader returned incomplete data when were called after
readline() or read(size). Based on patch by Amaury Forgeot d'Arc.
Nick Coghlan [Fri, 24 Jan 2014 13:05:45 +0000 (23:05 +1000)]
Issue 20317: Remove debugging code from contextlib
- Alex J Burke noticed a debugging raise in the commit that
fixed the original bug reported in issue 20317
- this showed that multiple iterations through the affected
loop wasn't actually being tested
Terry Jan Reedy [Wed, 22 Jan 2014 02:12:24 +0000 (21:12 -0500)]
Issue #20818: Remove code from idlelib.CallTipWindow.showtip that is now
completely redundant. After 16638 patch, CallTips.get_argspec trims over-long
signature strings as well as docstring lines.
Terry Jan Reedy [Wed, 22 Jan 2014 01:45:17 +0000 (20:45 -0500)]
Issue #16638: Include up to 5 docstring header lines (before first blank) in
Idle calltips. This is needed for builtins, such bytes (which is why 5).
Based on patch by Serhiy Storchaka.
Serhiy Storchaka [Tue, 21 Jan 2014 20:26:52 +0000 (22:26 +0200)]
Issue #2382: SyntaxError cursor "^" now is written at correct position in most
cases when multibyte characters are in line (before "^"). This still not
works correctly with wide East Asian characters.
Zachary Ware [Tue, 21 Jan 2014 19:49:22 +0000 (13:49 -0600)]
Issue #20301: Mention the correct KEY_* value as the default
for 'access' in winreg.DeleteKeyEx. Already correct in the docs
function signature and docstring. Noticed by Justin Foo.
Victor Stinner [Tue, 21 Jan 2014 00:41:00 +0000 (01:41 +0100)]
Issue #20311: select.epoll.poll() now rounds the timeout away from zero,
instead of rounding towards zero. For example, a timeout of one microsecond is
now rounded to one millisecond, instead of being rounded to zero.
R David Murray [Sat, 18 Jan 2014 19:56:10 +0000 (14:56 -0500)]
#19855: restore use of LC_ALL, not LC_MESSAGES
I didn't realize LC_ALL was an override, and I should have. I tried to
make a test, but it is not clear that the LC variables actually affect
the strings that uuid is using to parse the command output.