File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,9 +183,8 @@ def parseliteral():
183183 <html><body>text</body></html>
184184 >>> print(ET.tostring(element))
185185 <html><body>text</body></html>
186- >>> print(ET.tostring(element, "ascii"))
187- <?xml version='1.0' encoding='ascii'?>
188- <html><body>text</body></html>
186+ >>> print(repr(ET.tostring(element, "ascii")))
187+ b'<?xml version=\'1.0\' encoding=\'ascii\'?>\n<html><body>text</body></html>'
189188 >>> _, ids = ET.XMLID("<html><body>text</body></html>")
190189 >>> len(ids)
191190 0
Original file line number Diff line number Diff line change @@ -175,9 +175,8 @@ def parseliteral():
175175 <html><body>text</body></html>
176176 >>> print(ET.tostring(element))
177177 <html><body>text</body></html>
178- >>> print(ET.tostring(element, "ascii"))
179- <?xml version='1.0' encoding='ascii'?>
180- <html><body>text</body></html>
178+ >>> print(repr(ET.tostring(element, "ascii")))
179+ b'<?xml version=\'1.0\' encoding=\'ascii\'?>\n<html><body>text</body></html>'
181180 >>> _, ids = ET.XMLID("<html><body>text</body></html>")
182181 >>> len(ids)
183182 0
You can’t perform that action at this time.
0 commit comments