def _check_accept_keywords(approved, flag):
 if (flag in approved):
  return False
 elif ((flag.startswith('~') and (flag[1:] in approved)) or (('~' + flag) in approved)):
  return False
 else:
  return True

def _check_accept_keywords ( approved , flag ) : if ( flag in approved ) : return False elif ( ( flag . startswith ( '~' ) and ( flag [ 1 : ] in approved ) ) or ( ( '~' + flag ) in approved ) ) : return False else : return True
check compatibility of accept_keywords .