File tree Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -2954,9 +2954,9 @@ async def aggregate(
2954
2954
To avoid this, best practice is to call :meth:`AsyncCursor.close` when the cursor is no longer needed,
2955
2955
or use the cursor in a with statement::
2956
2956
2957
- async with await collection.aggregate() as cursor:
2958
- async for operation in cursor:
2959
- print(operation)
2957
+ async with await collection.aggregate() as cursor:
2958
+ async for operation in cursor:
2959
+ print(operation)
2960
2960
2961
2961
:param pipeline: a list of aggregation pipeline stages
2962
2962
:param session: a
Original file line number Diff line number Diff line change @@ -1164,9 +1164,9 @@ async def list_collections(
1164
1164
To avoid this, best practice is to call :meth:`AsyncCursor.close` when the cursor is no longer needed,
1165
1165
or use the cursor in a with statement::
1166
1166
1167
- async with await database.list_collections() as cursor:
1168
- async for collection in cursor:
1169
- print(collection)
1167
+ async with await database.list_collections() as cursor:
1168
+ async for collection in cursor:
1169
+ print(collection)
1170
1170
1171
1171
:param session: a
1172
1172
:class:`~pymongo.asynchronous.client_session.AsyncClientSession`.
Original file line number Diff line number Diff line change @@ -2356,9 +2356,9 @@ async def list_databases(
2356
2356
To avoid this, best practice is to call :meth:`AsyncCursor.close` when the cursor is no longer needed,
2357
2357
or use the cursor in a with statement::
2358
2358
2359
- async with await client.list_databases() as cursor:
2360
- async for database in cursor:
2361
- print(database)
2359
+ async with await client.list_databases() as cursor:
2360
+ async for database in cursor:
2361
+ print(database)
2362
2362
2363
2363
:param session: a
2364
2364
:class:`~pymongo.asynchronous.client_session.AsyncClientSession`.
Original file line number Diff line number Diff line change @@ -2947,9 +2947,9 @@ def aggregate(
2947
2947
To avoid this, best practice is to call :meth:`Cursor.close` when the cursor is no longer needed,
2948
2948
or use the cursor in a with statement::
2949
2949
2950
- with collection.aggregate() as cursor:
2951
- for operation in cursor:
2952
- print(operation)
2950
+ with collection.aggregate() as cursor:
2951
+ for operation in cursor:
2952
+ print(operation)
2953
2953
2954
2954
:param pipeline: a list of aggregation pipeline stages
2955
2955
:param session: a
Original file line number Diff line number Diff line change @@ -1158,9 +1158,9 @@ def list_collections(
1158
1158
To avoid this, best practice is to call :meth:`Cursor.close` when the cursor is no longer needed,
1159
1159
or use the cursor in a with statement::
1160
1160
1161
- with database.list_collections() as cursor:
1162
- for collection in cursor:
1163
- print(collection)
1161
+ with database.list_collections() as cursor:
1162
+ for collection in cursor:
1163
+ print(collection)
1164
1164
1165
1165
:param session: a
1166
1166
:class:`~pymongo.client_session.ClientSession`.
Original file line number Diff line number Diff line change @@ -2346,9 +2346,9 @@ def list_databases(
2346
2346
To avoid this, best practice is to call :meth:`Cursor.close` when the cursor is no longer needed,
2347
2347
or use the cursor in a with statement::
2348
2348
2349
- with client.list_databases() as cursor:
2350
- for database in cursor:
2351
- print(database)
2349
+ with client.list_databases() as cursor:
2350
+ for database in cursor:
2351
+ print(database)
2352
2352
2353
2353
:param session: a
2354
2354
:class:`~pymongo.client_session.ClientSession`.
You can’t perform that action at this time.
0 commit comments