Permalink
Browse files

HTMLForm unicode

  • Loading branch information...
1 parent 272b66f commit b21004045be595fe4defb5e63498a839a5c14479 @gugu committed Mar 24, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 mechanize/_form.py
View
@@ -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
@@ -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)
#---------------------------------------------------

0 comments on commit b210040

Please sign in to comment.