Skip to content

Commit d97a43e

Browse files
committed
cleanup
1 parent 8e3fd00 commit d97a43e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pymongo/network.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
_UNPACK_HEADER = struct.Struct("<iiii").unpack
4141

4242

43-
def command(sock_info, max_wire_version, dbname, spec, slave_ok, is_mongos,
43+
def command(sock_info, dbname, spec, slave_ok, is_mongos,
4444
read_preference, codec_options, session, client, check=True,
4545
allowable_errors=None, address=None,
4646
check_keys=False, listeners=None, max_bson_size=None,
@@ -157,7 +157,8 @@ def command(sock_info, max_wire_version, dbname, spec, slave_ok, is_mongos,
157157
client._process_response(response_doc, session)
158158
if check:
159159
helpers._check_command_response(
160-
response_doc, max_wire_version, None, allowable_errors,
160+
response_doc, sock_info.max_wire_version, None,
161+
allowable_errors,
161162
parse_write_concern_error=parse_write_concern_error)
162163
except Exception as exc:
163164
if publish:

pymongo/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ def command(self, dbname, spec, slave_ok=False,
680680
if self.op_msg_enabled:
681681
self._raise_if_not_writable(unacknowledged)
682682
try:
683-
return command(self, self.max_wire_version, dbname, spec,
683+
return command(self, dbname, spec,
684684
slave_ok, self.is_mongos, read_preference,
685685
codec_options, session, client, check,
686686
allowable_errors, self.address, check_keys,

0 commit comments

Comments
 (0)