<s> """<STR_LIT>""" <EOL> from pymongo . mongo_replica_set_client import MongoReplicaSetClient <EOL> from pymongo . errors import ConfigurationError <EOL> class ReplicaSetConnection ( MongoReplicaSetClient ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , hosts_or_uri = None , max_pool_size = None , <EOL> document_class = dict , tz_aware = False , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> network_timeout = kwargs . pop ( '<STR_LIT>' , None ) <EOL> if network_timeout is not None : <EOL> if ( not isinstance ( network_timeout , ( int , float ) ) or <EOL> network_timeout <= <NUM_LIT:0> ) : <EOL> raise ConfigurationError ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> kwargs [ '<STR_LIT>' ] = network_timeout * <NUM_LIT:1000> <EOL> kwargs [ '<STR_LIT>' ] = kwargs . get ( '<STR_LIT>' , True ) <EOL> kwargs [ '<STR_LIT>' ] = kwargs . get ( '<STR_LIT>' , False ) <EOL> super ( ReplicaSetConnection , self ) . __init__ ( <EOL> hosts_or_uri , max_pool_size , document_class , tz_aware , ** kwargs ) <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % ( [ "<STR_LIT>" % n <EOL> for n in self . hosts ] , ) </s>
