Fix loop
This commit is contained in:
		| @@ -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__() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user