Example #1
0
def chaperone_procedure_star(args):
    proc, check, keys, vals = unpack_procedure_args(args,
                                                    "chaperone-procedure*")
    if check is values.w_false and not keys:
        return proc
    return imp.make_interpose_procedure(imp.W_ChpProcedureStar, proc, check,
                                        keys, vals)
Example #2
0
def chaperone_procedure(args):
    proc, check, keys, vals = unpack_procedure_args(
        args, "unsafe-chaperone-procedure")
    if check is values.w_false and not keys:
        return proc
    return imp.make_interpose_procedure(imp.W_UnsafeChpProcedure, proc, check,
                                        keys, vals)
Example #3
0
def impersonate_procedure(args):
    proc, check, keys, vals = unpack_procedure_args(args,
                                                    "impersonate-procedure")
    if check is values.w_false and not keys:
        return proc
    return imp.make_interpose_procedure(imp.W_ImpProcedure, proc, check, keys,
                                        vals)
Example #4
0
def chaperone_procedure_star(args):
    proc, check, keys, vals = unpack_procedure_args(args, "chaperone-procedure*")
    if check is values.w_false and not keys:
        return proc
    return imp.make_interpose_procedure(imp.W_ChpProcedureStar, proc, check, keys, vals)
Example #5
0
def chaperone_procedure(args):
    proc, check, keys, vals = unpack_procedure_args(args, "unsafe-chaperone-procedure")
    if check is values.w_false and not keys:
        return proc
    return imp.make_interpose_procedure(imp.W_UnsafeChpProcedure, proc, check, keys, vals)
Example #6
0
def impersonate_procedure(args):
    proc, check, keys, vals = unpack_procedure_args(args, "impersonate-procedure")
    if check is values.w_false and not keys:
        return proc
    return imp.make_interpose_procedure(imp.W_ImpProcedure, proc, check, keys, vals)