Skip to content

Commit

Permalink
HTMLForm unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
gugu committed Mar 24, 2012
1 parent 272b66f commit b210040
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mechanize/_form.py
Expand Up @@ -1258,8 +1258,8 @@ def __unicode__(self):
if value is None: value = u"<None>"

infos = []
if self.disabled: infos.append("disabled")
if self.readonly: infos.append("readonly")
if self.disabled: infos.append(u"disabled")
if self.readonly: infos.append(u"readonly")
info = u", ".join(infos)
if info: info = u" (%s)" % info

Expand Down Expand Up @@ -2810,7 +2810,7 @@ def __unicode__(self):
self.method, self.action, self.enctype)
rep = [header]
for control in self.controls:
rep.append(u" %s" % str(control))
rep.append(u" %s" % unicode(control))
return u"<%s>" % u"\n".join(rep)

#---------------------------------------------------
Expand Down

0 comments on commit b210040

Please sign in to comment.