3
]ð]£  ã               @   s.   d Z ddlZddlmZ G dd„ dejƒZdS )z3Deprecated. See :doc:`/examples/high_availability`.é    N)Úmongo_clientc                   s(   e Zd ZdZ‡ fdd„Zdd„ Z‡  ZS )ÚMongoReplicaSetClienta&  Deprecated alias for :class:`~pymongo.mongo_client.MongoClient`.

    :class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`
    will be removed in a future version of PyMongo.

    .. versionchanged:: 3.0
       :class:`~pymongo.mongo_client.MongoClient` is now the one and only
       client class for a standalone server, mongos, or replica set.
       It includes the functionality that had been split into
       :class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`: it
       can connect to a replica set, discover all its members, and monitor
       the set for stepdowns, elections, and reconfigs.

       The ``refresh`` method is removed from
       :class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`,
       as are the ``seeds`` and ``hosts`` properties.
    c                s&   t jdtdd� tt| ƒj||Ž d S )NzPMongoReplicaSetClient is deprecated, use MongoClient to connect to a replica seté   )Ú
stacklevel)ÚwarningsÚwarnÚDeprecationWarningÚsuperr   Ú__init__)ÚselfÚargsÚkwargs)Ú	__class__© úC/tmp/pip-build-20mum3z4/pymongo/pymongo/mongo_replica_set_client.pyr
   (   s    
zMongoReplicaSetClient.__init__c             C   s   d| j ƒ f S )NzMongoReplicaSetClient(%s))Z_repr_helper)r   r   r   r   Ú__repr__/   s    zMongoReplicaSetClient.__repr__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   Ú__classcell__r   r   )r   r   r      s   r   )r   r   Zpymongor   ZMongoClientr   r   r   r   r   Ú<module>   s   