3
O6b                 @   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__ _/var/www/html/sandeepIITI/myenv/lib/python3.6/site-packages/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   