Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(263442)

Unified Diff: Lib/test/test_xml_etree.py

Issue 2830: Copy cgi.escape() to html
Patch Set: Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/lib2to3/tests/test_util.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Lib/test/test_xml_etree.py
===================================================================
--- Lib/test/test_xml_etree.py (revision 84355)
+++ Lib/test/test_xml_etree.py (working copy)
@@ -12,7 +12,7 @@
# except if the test is specific to the Python implementation.
import sys
-import cgi
+import html
import unittest
from test import support
@@ -1319,7 +1319,7 @@
<p>Example.</p>
<xi:include href="{}"/>
</document>
-""".format(cgi.escape(SIMPLE_XMLFILE, True))
+""".format(html.escape(SIMPLE_XMLFILE, True))
def xinclude_loader(href, parse="xml", encoding=None):
try:
« no previous file with comments | « Lib/lib2to3/tests/test_util.py ('k') | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+