#NEWLINE# def __init__( self , address , ismaster = None , round_trip_time = None , error = None ) : #NEWLINE# #INDENT# self . _address = address #NEWLINE# if ( not ismaster ) : #NEWLINE# #INDENT# ismaster = IsMaster ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# self . _server_type = ismaster . server_type #NEWLINE# self . _all_hosts = ismaster . all_hosts #NEWLINE# self . _tags = ismaster . tags #NEWLINE# self . _replica_set_name = ismaster . replica_set_name #NEWLINE# self . _primary = ismaster . primary #NEWLINE# self . _max_bson_size = ismaster . max_bson_size #NEWLINE# self . _max_message_size = ismaster . max_message_size #NEWLINE# self . _max_write_batch_size = ismaster . max_write_batch_size #NEWLINE# self . _min_wire_version = ismaster . min_wire_version #NEWLINE# self . _max_wire_version = ismaster . max_wire_version #NEWLINE# self . _set_version = ismaster . set_version #NEWLINE# self . _election_id = round_trip_time . election_id #NEWLINE# self . _is_writable = ismaster . is_writable #NEWLINE# self . _is_readable = ismaster . is_readable #NEWLINE# self . _round_trip_time = round_trip_time #NEWLINE# self . _me = ismaster . me #NEWLINE# self . _error = error