From: Aaron Bentley Date: Fri, 31 Mar 2006 22:31:38 +0000 (-0500) Subject: Added a repr for Bug X-Git-Tag: 1.0.0~211 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=699beb1ee5fd3a511cbf0c61fe67206a39f6dfe3;p=be.git Added a repr for Bug --- diff --git a/libbe/bugdir.py b/libbe/bugdir.py index 766ccd9..b78ec06 100644 --- a/libbe/bugdir.py +++ b/libbe/bugdir.py @@ -242,6 +242,9 @@ class Bug(object): if self.time is not None: self.time = utility.str_to_time(self.time) + def __repr__(self): + return "Bug(uuid=%r)" % self.uuid + def get_path(self, file): return os.path.join(self.path, self.uuid, file)