(dummy, value)
return value
Validate read preference mode for a MongoReplicaSetClient.

    .. versionchanged:: 3.5
       Returns the original ``value`` instead of the validated read preference
       mode.
Validate read preference mode for a MongoReplicaSetClient.
Validate read preference mode for a MongoReplicaSetClient .
def validate_read_preference_mode(dummy, value):
    """Validate read preference mode for a MongoReplicaSetClient.

    .. versionchanged:: 3.5
       Returns the original ``value`` instead of the validated read preference
       mode.
    """
    if value not in _MONGOS_MODES:
        raise ValueError("%s is not a valid read preference" % (value,))
    return value
def validate_read_preference_mode ( dummy , value ) : if value not in _MONGOS_MODES : raise ValueError ( "%s is not a valid read preference" % ( value , ) ) return value