From 615be654cb195503d1027d4f56d2f374e0e145a0 Mon Sep 17 00:00:00 2001 From: julius Date: Tue, 22 Mar 2022 15:07:11 -0700 Subject: [PATCH] fix blank lines added/removed --- pymongo/command_cursor.py | 1 + pymongo/message.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/pymongo/command_cursor.py b/pymongo/command_cursor.py index dc32bde16..e7a247a53 100644 --- a/pymongo/command_cursor.py +++ b/pymongo/command_cursor.py @@ -209,6 +209,7 @@ class CommandCursor(Generic[_DocumentType]): """ if len(self.__data) or self.__killed: return len(self.__data) + if self.__id: # Get More dbname, collname = self.__ns.split(".", 1) read_pref = self.__collection._read_preference_for(self.session) diff --git a/pymongo/message.py b/pymongo/message.py index 0a016020f..d622abe6d 100644 --- a/pymongo/message.py +++ b/pymongo/message.py @@ -472,7 +472,6 @@ class _GetMore(object): def as_command(self, sock_info): """Return a getMore command document for this query.""" # See _Query.as_command for an explanation of this caching. - if self._as_command is not None: return self._as_command