From: Serhiy Storchaka Date: Thu, 6 Feb 2014 19:11:33 +0000 (+0200) Subject: Fix empty strings to empty bytes objects. X-Git-Tag: v3.4.0rc1~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=303718c3d7b650f946a6364f50c9048a1100535b;p=thirdparty%2FPython%2Fcpython.git Fix empty strings to empty bytes objects. --- 303718c3d7b650f946a6364f50c9048a1100535b diff --cc Doc/library/xml.etree.elementtree.rst index fb6da15a7491,3f2dcbb71b45..dfa2b71cf581 --- a/Doc/library/xml.etree.elementtree.rst +++ b/Doc/library/xml.etree.elementtree.rst @@@ -508,10 -455,9 +508,10 @@@ Function the output encoding (default is US-ASCII). Use ``encoding="unicode"`` to generate a Unicode string (otherwise, a bytestring is generated). *method* is either ``"xml"``, ``"html"`` or ``"text"`` (default is ``"xml"``). + *short_empty_elements* has the same meaning as in :meth:`ElementTree.write`. Returns a list of (optionally) encoded strings containing the XML data. It does not guarantee any specific sequence, except that - ``"".join(tostringlist(element)) == tostring(element)``. + ``b"".join(tostringlist(element)) == tostring(element)``. .. versionadded:: 3.2