Skip to content

Commit 414250b

Browse files
committed
PYTHON-952 - Minor docstring updates
1 parent 98af86a commit 414250b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

pymongo/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def _check_write_command_response(results):
275275

276276

277277
def _upconvert_write_result(operation, command, result):
278-
"""Upconvert a legacy write result to write commmand format."""
278+
"""Convert a legacy write result to write commmand format."""
279279

280280
# Based on _merge_legacy from bulk.py
281281
affected = result.get("n", 0)

pymongo/network.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def command(sock, dbname, spec, slave_ok, is_mongos,
5353
- `allowable_errors`: errors to ignore if `check` is True
5454
- `address`: the (host, port) of `sock`
5555
- `user`: is this a user command or internal?
56+
- `check_keys`: if True, check `spec` for invalid keys
5657
"""
5758
name = next(iter(spec))
5859
ns = dbname + '.$cmd'

pymongo/pool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def command(self, dbname, spec, slave_ok=False,
181181
- `codec_options`: a CodecOptions instance
182182
- `check`: raise OperationFailure if there are errors
183183
- `allowable_errors`: errors to ignore if `check` is True
184+
- `check_keys`: if True, check `spec` for invalid keys
184185
"""
185186
try:
186187
return command(self.sock, dbname, spec, slave_ok,

0 commit comments

Comments
 (0)