

def __init__(self, children, context):
    (self.expr1, _if, self.cond, _else, self.expr2) = children
    assert (_if.value == 'if'), _if
    assert (_else.value == 'else'), _else
    super().__init__(context)

dataset/ETHPy150Open tailhook/pyzza/pyzza/parser.py Ternary.__init__/original