

def _ListMaker(children, context):
    if children:
        assert (len(children) == 1), children
        assert isinstance(children[0], ListMaker)
        return children[0]
    else:
        return ListMaker([], context)

dataset/ETHPy150Open tailhook/pyzza/pyzza/parser.py _ListMaker/original