def _add_flags(flags, new_flags):
 flags = _get_flags(flags)
 new_flags = _get_flags(new_flags)
 return (flags | new_flags)

def _add_flags ( flags , new_flags ) : flags = _get_flags ( flags ) new_flags = _get_flags ( new_flags ) return ( flags | new_flags )
combine flags and new_flags .