cpython: 81424281ee59 (original) (raw)

Mercurial > cpython

changeset 71162:81424281ee59 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. [#12451]

Victor Stinner victor.stinner@haypocalc.com
date Mon, 04 Jul 2011 01:25:55 +0200
parents 419871c62bb3
children c039c6b58907 cd1759711357
files Lib/xml/dom/pulldom.py Misc/NEWS
diffstat 2 files changed, 4 insertions(+), 1 deletions(-)[+] [-] Lib/xml/dom/pulldom.py 2 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/xml/dom/pulldom.py +++ b/Lib/xml/dom/pulldom.py @@ -326,7 +326,7 @@ def parse(stream_or_string, parser=None, if bufsize is None: bufsize = default_bufsize if isinstance(stream_or_string, str):

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -19,6 +19,9 @@ Core and Builtins Library ------- +- Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead