Skip to content

Commit af4516f

Browse files
author
Mike Dirolf
committed
minor: unnecessary call to struct.pack
1 parent 4e7c603 commit af4516f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def __send_message_on_socket(self, operation, data, sock):
447447
request_id = self.__increment_id()
448448
to_send = struct.pack("<i", 16 + len(data))
449449
to_send += struct.pack("<i", request_id)
450-
to_send += struct.pack("<i", 0) # responseTo
450+
to_send += "\x00\x00\x00\x00" # responseTo
451451
to_send += struct.pack("<i", operation)
452452

453453
to_send += data

0 commit comments

Comments
 (0)