Skip to content

Commit 0d4f87d

Browse files
abncrobinso
authored andcommitted
Call __unicode__ explicitly to allow for str(bug) usage in python3
1 parent 515be21 commit 0d4f87d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bugzilla/bug.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def __str__(self):
5151
'print(bug)' is not recommended because of potential encoding issues.
5252
Please use unicode(bug) where possible.
5353
'''
54-
return unicode(self).encode(locale.getpreferredencoding(), 'replace')
54+
return self.__unicode__().encode(
55+
locale.getpreferredencoding(), 'replace')
5556

5657
def __unicode__(self):
5758
'''Return a simple unicode string representation of this bug'''

0 commit comments

Comments
 (0)