(dummy, value)
return value
Validate a read preference.
Validate a read preference.
Validate a read preference .
def validate_read_preference(dummy, value):
    """Validate a read preference.
    """
    if not isinstance(value, _ServerMode):
        raise TypeError("%r is not a read preference." % (value,))
    return value
def validate_read_preference ( dummy , value ) : if not isinstance ( value , _ServerMode ) : raise TypeError ( "%r is not a read preference." % ( value , ) ) return value