]> granicus.if.org Git - python/commitdiff
(merge 3.2) Issue #12451: pydoc: importfile() now opens the Python script in
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 4 Jul 2011 00:09:44 +0000 (02:09 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 4 Jul 2011 00:09:44 +0000 (02:09 +0200)
binary mode, instead of text mode using the locale encoding, to avoid encoding
issues.

1  2 
Lib/pydoc.py
Misc/NEWS

diff --cc Lib/pydoc.py
Simple merge
diff --cc Misc/NEWS
index d2c5a03109392d6c8e8a729791bee195c2e93f28,5d4ed6fe4444b7edc4d3a082719db7bb58cd7e3e..9aba95e98f2aa21479ec1a04874c86eca1711587
+++ b/Misc/NEWS
@@@ -209,13 -58,6 +209,16 @@@ Core and Builtin
  Library
  -------
  
++- 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.