Skip to content

Commit 70a1fec

Browse files
PYTHON-1363 Remove unused retrieved parameter from CommandCursor (mongodb#689)
1 parent a949142 commit 70a1fec

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

pymongo/command_cursor.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,10 @@ class CommandCursor(object):
3131
"""A cursor / iterator over command cursors."""
3232
_getmore_class = _GetMore
3333

34-
def __init__(self, collection, cursor_info, address, retrieved=0,
34+
def __init__(self, collection, cursor_info, address,
3535
batch_size=0, max_await_time_ms=None, session=None,
3636
explicit_session=False):
37-
"""Create a new command cursor.
38-
39-
The parameter 'retrieved' is unused.
40-
"""
37+
"""Create a new command cursor."""
4138
self.__sock_mgr = None
4239
self.__collection = collection
4340
self.__id = cursor_info['id']
@@ -297,7 +294,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
297294
class RawBatchCommandCursor(CommandCursor):
298295
_getmore_class = _RawBatchGetMore
299296

300-
def __init__(self, collection, cursor_info, address, retrieved=0,
297+
def __init__(self, collection, cursor_info, address,
301298
batch_size=0, max_await_time_ms=None, session=None,
302299
explicit_session=False):
303300
"""Create a new cursor / iterator over raw batches of BSON data.
@@ -310,7 +307,7 @@ def __init__(self, collection, cursor_info, address, retrieved=0,
310307
"""
311308
assert not cursor_info.get('firstBatch')
312309
super(RawBatchCommandCursor, self).__init__(
313-
collection, cursor_info, address, retrieved, batch_size,
310+
collection, cursor_info, address, batch_size,
314311
max_await_time_ms, session, explicit_session)
315312

316313
def _unpack_response(self, response, cursor_id, codec_options,

0 commit comments

Comments
 (0)