Kaydet (Commit) 14bd1c3b authored tarafından Florent Xicluna's avatar Florent Xicluna

Fix BytesWarning in test_xml_etree, introduced with r83851.

üst d62e6cab
......@@ -643,9 +643,9 @@ def parseliteral():
<html><body>text</body></html>
>>> sequence = ["<html><body>", "text</bo", "dy></html>"]
>>> element = ET.fromstringlist(sequence)
>>> print(ET.tostring(element))
>>> ET.tostring(element)
b'<html><body>text</body></html>'
>>> print(b"".join(ET.tostringlist(element)))
>>> b"".join(ET.tostringlist(element))
b'<html><body>text</body></html>'
>>> ET.tostring(element, "ascii")
b"<?xml version='1.0' encoding='ascii'?>\\n<html><body>text</body></html>"
......
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