Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)