PYTHON-2288 Finish removing IsMaster from docs

This commit is contained in:
Shane Harvey 2021-08-06 12:33:26 -07:00
parent 69dee51b90
commit 3e02957998
5 changed files with 5 additions and 15 deletions

View File

@ -1,10 +0,0 @@
:orphan:
:mod:`ismaster` -- A wrapper for ismaster command responses.
============================================================
.. automodule:: pymongo.ismaster
.. autoclass:: pymongo.ismaster.IsMaster(doc)
.. autoattribute:: document

View File

@ -260,7 +260,7 @@ class Monitor(MonitorBase):
return sd
def _check_with_socket(self, conn):
"""Return (IsMaster, round_trip_time).
"""Return (Hello, round_trip_time).
Can raise ConnectionFailure or OperationFailure.
"""

View File

@ -1196,7 +1196,7 @@ class ServerHeartbeatSucceededEvent(_ServerHeartbeatEvent):
@property
def reply(self):
"""An instance of :class:`~pymongo.ismaster.IsMaster`."""
"""An instance of :class:`~pymongo.hello.Hello`."""
return self.__reply
@property

View File

@ -26,7 +26,7 @@ class ServerDescription(object):
:Parameters:
- `address`: A (host, port) pair
- `ismaster`: Optional IsMaster instance
- `ismaster`: Optional Hello instance
- `round_trip_time`: Optional float
- `error`: Optional, the last error attempting to connect to the server
"""

View File

@ -38,7 +38,7 @@ class TestStreamingProtocol(IntegrationTest):
hb_listener = HeartbeatEventListener()
client = rs_or_single_client(
event_listeners=[listener, hb_listener], heartbeatFrequencyMS=500,
appName='failingIsMasterTest')
appName='failingHeartbeatTest')
self.addCleanup(client.close)
# Force a connection.
client.admin.command('ping')
@ -52,7 +52,7 @@ class TestStreamingProtocol(IntegrationTest):
'failCommands': ['isMaster', 'hello'],
'closeConnection': False,
'errorCode': 10107,
'appName': 'failingIsMasterTest',
'appName': 'failingHeartbeatTest',
},
}
with self.fail_point(fail_ismaster):