Kaydet (Commit) 3663abab authored tarafından Victor Stinner's avatar Victor Stinner

(merge 3.2) 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.
......@@ -326,7 +326,7 @@ def parse(stream_or_string, parser=None, bufsize=None):
if bufsize is None:
bufsize = default_bufsize
if isinstance(stream_or_string, str):
stream = open(stream_or_string)
stream = open(stream_or_string, 'rb')
else:
stream = stream_or_string
if not parser:
......
......@@ -209,6 +209,9 @@ Core and Builtins
Library
-------
- 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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment