From: Victor Stinner Date: Sun, 3 Jul 2011 23:47:40 +0000 (+0200) Subject: (merge 3.2) Issue #12451: runpy: run_path() now opens the Python script in X-Git-Tag: v3.3.0a1~1972 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d8c8a095a19ea63a313c6b937bc2bbcbc7fd6f9;p=thirdparty%2FPython%2Fcpython.git (merge 3.2) 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). --- 7d8c8a095a19ea63a313c6b937bc2bbcbc7fd6f9 diff --cc Misc/NEWS index 7e2831a11c65,b23365046570..d2c5a0310939 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -209,9 -55,6 +209,13 @@@ Core and Builtin Library ------- ++- 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.