def __repr__(self):
        return "<Requirements({})>".format(self.filename.name or "")
def delete_comment(self):
        "Delete the selected comment"

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