def is_blank_line(self):
    for node in self._nodes:
        if (node.type not in [NodeType.BLANK, NodeType.ENTER]):
            return False
    return True
def is_blank_line(self):
    for node in self._nodes:
        if (node.type not in [NodeType.BLANK, NodeType.ENTER]):
            return False
    return True