summaryrefslogtreecommitdiff
path: root/Lib/test/test_minidom.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-02 19:09:54 +0000
committerGuido van Rossum <guido@python.org>2007-05-02 19:09:54 +0000
commitb073f81ebad8246da83b7c7aef0031e86ad228ef (patch)
tree65721adc3d7eb83905fae992a9252af31bb0b702 /Lib/test/test_minidom.py
parented9f1907286ed2cb9109ccb72f318ea249e6c295 (diff)
downloadcpython-b073f81ebad8246da83b7c7aef0031e86ad228ef.tar.gz
Rip out all the u"..." literals and calls to unicode().
Diffstat (limited to 'Lib/test/test_minidom.py')
-rw-r--r--Lib/test/test_minidom.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py
index 5f95365849..9b61d1a2fe 100644
--- a/Lib/test/test_minidom.py
+++ b/Lib/test/test_minidom.py
@@ -166,7 +166,7 @@ class MinidomTest(unittest.TestCase):
def testAppendChild(self):
dom = parse(tstfile)
- dom.documentElement.appendChild(dom.createComment(u"Hello"))
+ dom.documentElement.appendChild(dom.createComment("Hello"))
self.confirm(dom.documentElement.childNodes[-1].nodeName == "#comment")
self.confirm(dom.documentElement.childNodes[-1].data == "Hello")
dom.unlink()
@@ -427,7 +427,7 @@ class MinidomTest(unittest.TestCase):
def testElementReprAndStrUnicode(self):
dom = Document()
- el = dom.appendChild(dom.createElement(u"abc"))
+ el = dom.appendChild(dom.createElement("abc"))
string1 = repr(el)
string2 = str(el)
self.confirm(string1 == string2)
@@ -436,7 +436,7 @@ class MinidomTest(unittest.TestCase):
def testElementReprAndStrUnicodeNS(self):
dom = Document()
el = dom.appendChild(
- dom.createElementNS(u"http://www.slashdot.org", u"slash:abc"))
+ dom.createElementNS("http://www.slashdot.org", "slash:abc"))
string1 = repr(el)
string2 = str(el)
self.confirm(string1 == string2)
@@ -445,7 +445,7 @@ class MinidomTest(unittest.TestCase):
def testAttributeRepr(self):
dom = Document()
- el = dom.appendChild(dom.createElement(u"abc"))
+ el = dom.appendChild(dom.createElement("abc"))
node = el.setAttribute("abc", "def")
self.confirm(str(node) == repr(node))
dom.unlink()
@@ -869,7 +869,7 @@ class MinidomTest(unittest.TestCase):
def testEncodings(self):
doc = parseString('<foo>&#x20ac;</foo>')
- self.confirm(doc.toxml() == u'<?xml version="1.0" ?><foo>\u20ac</foo>'
+ self.confirm(doc.toxml() == '<?xml version="1.0" ?><foo>\u20ac</foo>'
and doc.toxml('utf-8') ==
'<?xml version="1.0" encoding="utf-8"?><foo>\xe2\x82\xac</foo>'
and doc.toxml('iso-8859-15') ==