From: Arun Babu Neelicattu abn@redhat.com
--- bugzilla/bug.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bugzilla/bug.py b/bugzilla/bug.py index 4a068d3..580aaf4 100644 --- a/bugzilla/bug.py +++ b/bugzilla/bug.py @@ -51,7 +51,8 @@ class _Bug(object): 'print(bug)' is not recommended because of potential encoding issues. Please use unicode(bug) where possible. ''' - return unicode(self).encode(locale.getpreferredencoding(), 'replace') + return self.__unicode__().encode( + locale.getpreferredencoding(), 'replace')
def __unicode__(self): '''Return a simple unicode string representation of this bug'''