Skip to content

Commit 0263b6a

Browse files
committed
Fix RTD build
1 parent 1bc0273 commit 0263b6a

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

pymongo/asynchronous/collection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2954,9 +2954,9 @@ async def aggregate(
29542954
To avoid this, best practice is to call :meth:`AsyncCursor.close` when the cursor is no longer needed,
29552955
or use the cursor in a with statement::
29562956
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)
29602960
29612961
:param pipeline: a list of aggregation pipeline stages
29622962
:param session: a

pymongo/asynchronous/database.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,9 +1164,9 @@ async def list_collections(
11641164
To avoid this, best practice is to call :meth:`AsyncCursor.close` when the cursor is no longer needed,
11651165
or use the cursor in a with statement::
11661166
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)
11701170
11711171
:param session: a
11721172
:class:`~pymongo.asynchronous.client_session.AsyncClientSession`.

pymongo/asynchronous/mongo_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,9 +2356,9 @@ async def list_databases(
23562356
To avoid this, best practice is to call :meth:`AsyncCursor.close` when the cursor is no longer needed,
23572357
or use the cursor in a with statement::
23582358
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)
23622362
23632363
:param session: a
23642364
:class:`~pymongo.asynchronous.client_session.AsyncClientSession`.

pymongo/synchronous/collection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2947,9 +2947,9 @@ def aggregate(
29472947
To avoid this, best practice is to call :meth:`Cursor.close` when the cursor is no longer needed,
29482948
or use the cursor in a with statement::
29492949
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)
29532953
29542954
:param pipeline: a list of aggregation pipeline stages
29552955
:param session: a

pymongo/synchronous/database.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,9 +1158,9 @@ def list_collections(
11581158
To avoid this, best practice is to call :meth:`Cursor.close` when the cursor is no longer needed,
11591159
or use the cursor in a with statement::
11601160
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)
11641164
11651165
:param session: a
11661166
:class:`~pymongo.client_session.ClientSession`.

pymongo/synchronous/mongo_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2346,9 +2346,9 @@ def list_databases(
23462346
To avoid this, best practice is to call :meth:`Cursor.close` when the cursor is no longer needed,
23472347
or use the cursor in a with statement::
23482348
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)
23522352
23532353
:param session: a
23542354
:class:`~pymongo.client_session.ClientSession`.

0 commit comments

Comments
 (0)