def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def delete_comment(self):
        "Delete the selected comment"

        if self.get_selected_item()['type'] == 'Comment':
            self.delete_item()
        else:
            self.term.flash()