
    h                     F    d Z ddlZddlmZ  G d dej                        Zy)z3Deprecated. See :doc:`/examples/high_availability`.    N)mongo_clientc                   (     e Zd ZdZ fdZd Z x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                 d    t        j                  dt        d       t        t        |   |i | y )NzPMongoReplicaSetClient is deprecated, use MongoClient to connect to a replica set   )
stacklevel)warningswarnDeprecationWarningsuperr   __init__)selfargskwargs	__class__s      c/var/www/html/ranktracker/api/venv/lib/python3.12/site-packages/pymongo/mongo_replica_set_client.pyr   zMongoReplicaSetClient.__init__(   s0     5(Q	8 	#T3TDVD    c                 *    d| j                         dS )NzMongoReplicaSetClient())_repr_helper)r   s    r   __repr__zMongoReplicaSetClient.__repr__/   s    .2.?.?.ACCr   )__name__
__module____qualname____doc__r   r   __classcell__)r   s   @r   r   r      s    "EDr   r   )r   r	   pymongor   MongoClientr    r   r   <module>r       s$    :   DL44 Dr   