summaryrefslogtreecommitdiff
path: root/django/test/html.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-07-20 14:48:51 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-07-22 09:29:54 +0200
commitbdca5ea345c548a82a80d198906818c9ccbef896 (patch)
tree5c3f5fe5ad2522175d67b96a1fce1ff1763ba125 /django/test/html.py
parent3cb2457f46b3e40ff6b6acffcb3fd44cbea091e5 (diff)
[py3] Replaced unicode/str by six.text_type/bytes.
Diffstat (limited to 'django/test/html.py')
-rw-r--r--django/test/html.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/test/html.py b/django/test/html.py
index a44eb72322..8d577d91fd 100644
--- a/django/test/html.py
+++ b/django/test/html.py
@@ -125,14 +125,14 @@ class Element(object):
output += ' %s' % key
if self.children:
output += '>\n'
- output += ''.join(unicode(c) for c in self.children)
+ output += ''.join(six.text_type(c) for c in self.children)
output += '\n</%s>' % self.name
else:
output += ' />'
return output
def __repr__(self):
- return unicode(self)
+ return six.text_type(self)
class RootElement(Element):
@@ -140,7 +140,7 @@ class RootElement(Element):
super(RootElement, self).__init__(None, ())
def __unicode__(self):
- return ''.join(unicode(c) for c in self.children)
+ return ''.join(six.text_type(c) for c in self.children)
class Parser(HTMLParser):