def make_call_keywords(stack_builders, count):
    """
    Make the keywords entry for an ast.Call node.
    """
    out = []
    for _ in range(count):
        value = make_expr(stack_builders)
        load_kwname = stack_builders.pop()
        if not isinstance(load_kwname, instrs.LOAD_CONST):
            raise DecompilationError(
                "Expected a LOAD_CONST, but got %r" % load_kwname
            )
        if not isinstance(load_kwname.arg, str):
            raise DecompilationError(
                "Expected LOAD_CONST of a str, but got %r." % load_kwname,
            )
        out.append(ast.keyword(arg=load_kwname.arg, value=value))
    out.reverse()
    return out
def make_call_keywords ( stack_builders , count ) : out = [ ] for _ in range ( count ) : value = make_expr ( stack_builders ) load_kwname = stack_builders . pop ( ) if not isinstance ( load_kwname , instrs . LOAD_CONST ) : raise DecompilationError ( "Expected a LOAD_CONST, but got %r" % load_kwname ) if not isinstance ( load_kwname . arg , str ) : raise DecompilationError ( "Expected LOAD_CONST of a str, but got %r." % load_kwname , ) out . append ( ast . keyword ( arg = load_kwname . arg , value = value ) ) out . reverse ( ) return out
Make the keywords entry for an ast.Call node.