From: Victor Stinner Date: Tue, 5 Jul 2011 12:31:28 +0000 (+0200) Subject: (merge 3.2) Issue #12451: pydoc: html_getfile() now uses tokenize.open() to X-Git-Tag: v3.3.0a1~1945 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7772bc4cb42418f1fd347afe777fd7a6d5a7287;p=thirdparty%2FPython%2Fcpython.git (merge 3.2) Issue #12451: pydoc: html_getfile() now uses tokenize.open() to support Python scripts using a encoding different than UTF-8 (read the coding cookie of the script). --- d7772bc4cb42418f1fd347afe777fd7a6d5a7287 diff --cc Misc/NEWS index 5d1530adb5a4,0bc7cd76e045..4f41fb17be4b --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -219,24 -102,8 +219,28 @@@ Core and Builtin Library ------- ++- Issue #12451: pydoc: html_getfile() now uses tokenize.open() to support ++ Python scripts using a encoding different than UTF-8 (read the coding cookie ++ of the script). ++ +- Issue #12493: subprocess: Popen.communicate() now also handles EINTR errors + if the process has only one pipe. + +- Issue #12467: warnings: fix a race condition if a warning is emitted at + shutdown, if globals()['__file__'] is None. + +- Issue #12451: pydoc: importfile() now opens the Python script in binary mode, + instead of text mode using the locale encoding, to avoid encoding issues. + +- Issue #12451: runpy: run_path() now opens the Python script in binary mode, + instead of text mode using the locale encoding, to support other encodings + than UTF-8 (scripts using the coding cookie). + +- Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead + of the text mode (using the locale encoding) to avoid encoding issues. + - Issue #12147: Adjust the new-in-3.2 smtplib.send_message method for better - conformance to the RFCs: correctly handle Sender and Resent headers. + conformance to the RFCs: correctly handle Sender and Resent- headers. - Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by the garbage collector while the Heap lock is held.