@@ -181,7 +181,7 @@ zlib Compression Level
181181
182182 .. code-block:: python
183183
184- client = pymongo.MongoClient("mongodb://<username >:<password >@<hostname>:<port>",
184+ client = pymongo.MongoClient("mongodb://<db_username >:<db_password >@<hostname>:<port>",
185185 compressors = "zlib",
186186 zlibCompressionLevel=<zlib compression level>)
187187
@@ -190,7 +190,7 @@ zlib Compression Level
190190
191191 .. code-block:: python
192192
193- uri = ("mongodb://<username >:<password >@<hostname>:<port>/?"
193+ uri = ("mongodb://<db_username >:<db_password >@<hostname>:<port>/?"
194194 "compressors=zlib"
195195 "zlibCompressionLevel=<zlib compression level>")
196196 client = pymongo.MongoClient(uri)
@@ -203,7 +203,7 @@ Server Selection
203203
204204.. code-block:: python
205205
206- client = pymongo.MongoClient("mongodb://<username >:<password >@<hostname>:<port>",
206+ client = pymongo.MongoClient("mongodb://<db_username >:<db_password >@<hostname>:<port>",
207207 server_selector=<selector function>)
208208
209209To learn more about customizing server selection, see
@@ -216,7 +216,7 @@ To learn more about customizing server selection, see
216216
217217 from pymongo.server_api import ServerApi
218218
219- client = pymongo.MongoClient("mongodb://<username >:<password >@<hostname:<port>",
219+ client = pymongo.MongoClient("mongodb://<db_username >:<db_password >@<hostname:<port>",
220220 server_api=ServerApi("<{+stable-api+} version>"))
221221
222222To learn more about the {+stable-api+}, see :ref:`pymongo-stable-api`.
@@ -244,15 +244,15 @@ timeoutMS Connection Option
244244
245245 .. code-block:: python
246246
247- client = pymongo.MongoClient("mongodb://<username >:<password >@<hostname@:<port>",
247+ client = pymongo.MongoClient("mongodb://<db_username >:<db_password >@<hostname@:<port>",
248248 timeoutMS=<timeout length>)
249249
250250 .. tab:: Connection String
251251 :tabid: connectionstring
252252
253253 .. code-block:: python
254254
255- uri = "mongodb://<username >:<password >@<hostname:<port>/?timeoutMS=<timeout length>"
255+ uri = "mongodb://<db_username >:<db_password >@<hostname:<port>/?timeoutMS=<timeout length>"
256256 client = pymongo.MongoClient(uri)
257257
258258To learn more about client-side timeouts, see :ref:`pymongo-csot`.
0 commit comments