changeset 10702 | f94c812c3669 |
parent 10695 | 321b99973b69 |
child 10703 | 3cb87b61b067 |
--- a/uilib.py Fri Sep 18 14:50:44 2015 +0200 +++ b/uilib.py Thu Sep 17 11:07:36 2015 +0200 @@ -339,9 +339,9 @@ def __unicode__(self): if self.parent: return u'%s.%s' % (self.parent, self.id) - return unicode(self.id) + return text_type(self.id) def __str__(self): - return unicode(self).encode('utf8') + return text_type(self).encode('utf8') def __getattr__(self, attr): return _JSId(attr, self) def __call__(self, *args):