def make_comment_xml(self, text, author): note = XMLBuilder('note') note.text(text) if author is not None: note.author(author) return str(note)