diff options
Diffstat (limited to 'libbe/bug.py')
-rw-r--r-- | libbe/bug.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbe/bug.py b/libbe/bug.py index 09a2c1d..c75c968 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -206,6 +206,12 @@ class Bug(object): self.comment_root = comment.loadComments(self) self._comments_loaded = True + def comments(self): + if self._comments_loaded == False: + self.load_comments() + for comment in self.comment_root.traverse(): + yield comment + def _add_attr(self, map, name): value = getattr(self, name) if value is not None: |