def is_uoa(str):
    """
    Input:  string to check

    Output: True if allowed UOA, False otherwise
    """

    if str.find(cfg['detect_cur_cid'])>=0 or str.find(cfg['detect_cur_cid1'])>=0: return False
    if str.find('*')>=0: return False
    if str.find('?')>=0: return False

    return True
def is_uoa ( str ) : if str . find ( cfg [ 'detect_cur_cid' ] ) >= 0 or str . find ( cfg [ 'detect_cur_cid1' ] ) >= 0 : return False if str . find ( '*' ) >= 0 : return False if str . find ( '?' ) >= 0 : return False return True
Input:  string to check

    Output: True if allowed UOA, False otherwise