Add IBugtracker::__str__() so error reporting is prettier

This commit is contained in:
Terence Simpson 2011-06-17 19:21:04 +01:00
parent 62936a986c
commit af3c308926

View File

@ -578,6 +578,9 @@ class IBugtracker:
def __cmp__(self, other): # used implicitly in Bugtracker.is_ok()
return cmp(hash(self), hash(other))
def __str__(self):
return self.name
class Bugzilla(IBugtracker):
def get_tracker(self, url):
url = url.replace('show_bug','xml')