From 22aad60c0372e7a573ee2f9b908c11c96c48468f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 22 Jun 2009 10:02:11 -0400 Subject: Fixed libbe.settings_object.EMPTY output in bug/comment XML. The xml() method hadn't been updated since the settings_object revamp. --- libbe/bug.py | 2 +- libbe/comment.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libbe') diff --git a/libbe/bug.py b/libbe/bug.py index fe059fa..59b011b 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -260,7 +260,7 @@ class Bug(settings_object.SavedSettingsObject): ("summary", self.summary)] ret = '\n' for (k,v) in info: - if v is not None: + if v is not settings_object.EMPTY: ret += ' <%s>%s\n' % (k,v,k) if show_comments == True: diff --git a/libbe/comment.py b/libbe/comment.py index 78a6b6a..8d03a7b 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -237,7 +237,7 @@ class Comment(Tree, settings_object.SavedSettingsObject): lines = ["", " %s" % self.uuid, " %s" % (shortname,),] - if self.in_reply_to != None: + if self.in_reply_to != settings_object.EMPTY: lines.append(" %s" % self.in_reply_to) lines.extend([ " %s" % self._setting_attr_string("From"), -- cgit