Skip to content

Commit 7e3f142

Browse files
author
A. Jesse Jiryu Davis
committed
Minor docstring improvements
1 parent 75966e5 commit 7e3f142

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

pymongo/cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def __getitem__(self, index):
416416
417417
An :class:`IndexError` will be raised if the index is negative
418418
or greater than the amount of documents in this cursor. Any
419-
limit applied to this cursor will be ignored.
419+
limit previously applied to this cursor will be ignored.
420420
421421
To get a slice of documents use a slice index, e.g.::
422422

pymongo/database.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -438,14 +438,14 @@ def validate_collection(self, name_or_collection,
438438
are split into individual fields in the result dict.
439439
440440
:Parameters:
441-
`name_or_collection`: A Collection object or the name of a
442-
collection to validate.
443-
`scandata`: Do extra checks beyond checking the overall
444-
structure of the collection.
445-
`full`: Have the server do a more thorough scan of the
446-
collection. Use with `scandata` for a thorough scan
447-
of the structure of the collection and the individual
448-
documents. Ignored in MongoDB versions before 1.9.
441+
- `name_or_collection`: A Collection object or the name of a
442+
collection to validate.
443+
- `scandata`: Do extra checks beyond checking the overall
444+
structure of the collection.
445+
- `full`: Have the server do a more thorough scan of the
446+
collection. Use with `scandata` for a thorough scan
447+
of the structure of the collection and the individual
448+
documents. Ignored in MongoDB versions before 1.9.
449449
450450
.. versionchanged:: 1.11
451451
validate_collection previously returned a string.

pymongo/master_slave_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(self, master, slaves=[], document_class=dict, tz_aware=False):
4848
4949
:Parameters:
5050
- `master`: `MongoClient` instance for the writable Master
51-
- `slaves` (optional): list of `MongoClient` instances for the
51+
- `slaves`: list of `MongoClient` instances for the
5252
read-only slaves
5353
- `document_class` (optional): default class to use for
5454
documents returned from queries on this connection

0 commit comments

Comments
 (0)