(name)
return _MONGOS_MODES.index(name)
Get the read preference mode from mongos/uri name.
Get the read preference mode from mongos/uri name.
Get the read preference mode from mongos / uri name .
def read_pref_mode_from_name(name):
    """Get the read preference mode from mongos/uri name.
    """
    return _MONGOS_MODES.index(name)
def read_pref_mode_from_name ( name ) : return _MONGOS_MODES . index ( name )