Fix loop
This commit is contained in:
parent
7a877a00d5
commit
6f0a6df4f6
@ -1338,7 +1338,7 @@ class BaseDocument(object):
|
|||||||
u = '[Bad Unicode data]'
|
u = '[Bad Unicode data]'
|
||||||
return '<%s: %s>' % (self.__class__.__name__, u)
|
return '<%s: %s>' % (self.__class__.__name__, u)
|
||||||
|
|
||||||
def __unicode__(self):
|
def __str__(self):
|
||||||
if hasattr(self, '__unicode__'):
|
if hasattr(self, '__unicode__'):
|
||||||
if PY3:
|
if PY3:
|
||||||
return self.__unicode__()
|
return self.__unicode__()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user