(protstr)
return prot_int
Heuristic to convert PROT_EXEC|PROT_WRITE to integer value.
Heuristic to convert PROT_EXEC|PROT_WRITE to integer value.
Heuristic to convert PROT_EXEC|PROT_WRITE to integer value .
def prot_str_to_val(protstr):
    '''Heuristic to convert PROT_EXEC|PROT_WRITE to integer value.'''
    prot_int = 0
    for k in prot_dict:
        if k in protstr:
            prot_int |= prot_dict[k]
    return prot_int
def prot_str_to_val ( protstr ) : prot_int = 0 for k in prot_dict : if k in protstr : prot_int |= prot_dict [ k ] return prot_int