From: Martin Panter Date: Mon, 16 May 2016 07:45:28 +0000 (+0000) Subject: Issue #14132, Issue #17214: Merge two redirect handling fixes from 3.5 X-Git-Tag: v3.6.0a1~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b39a556e8aa4d15de21a3305f74e12886d5f31b;p=python Issue #14132, Issue #17214: Merge two redirect handling fixes from 3.5 --- 0b39a556e8aa4d15de21a3305f74e12886d5f31b diff --cc Misc/NEWS index fe75bf9ada,0b9f6f0755..33dedeb87e --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -277,18 -117,16 +277,27 @@@ Core and Builtin Library ------- + - Issue #14132: Fix urllib.request redirect handling when the target only has + a query string. Original fix by Ján Janech. + + - Issue #17214: The "urllib.request" module now percent-encodes non-ASCII + bytes found in redirect target URLs. Some servers send Location header + fields with non-ASCII bytes, but "http.client" requires the request target + to be ASCII-encodable, otherwise a UnicodeEncodeError is raised. Based on + patch by Christian Heimes. + +- Issue #27033: The default value of the decode_data parameter for + smtpd.SMTPChannel and smtpd.SMTPServer constructors is changed to False. + +- Issue #27034: Removed deprecated class asynchat.fifo. + +- Issue #26870: Added readline.set_auto_history(), which can stop entries + being automatically added to the history list. Based on patch by Tyler + Crompton. + +- Issue #26039: zipfile.ZipFile.open() can now be used to write data into a ZIP + file, as well as for extracting data. Patch by Thomas Kluyver. + - Issue #26892: Honor debuglevel flag in urllib.request.HTTPHandler. Patch contributed by Chi Hsuan Yen.