Skip to content

Commit 8747837

Browse files
committed
PYTHON-2032 listIndexes no longer includes "ns" as of MongoDB 4.4
1 parent ae5c03d commit 8747837

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pymongo/collection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,8 +2236,7 @@ def list_indexes(self, session=None):
22362236
>>> for index in db.test.list_indexes():
22372237
... print(index)
22382238
...
2239-
SON([(u'v', 1), (u'key', SON([(u'_id', 1)])),
2240-
(u'name', u'_id_'), (u'ns', u'test.test')])
2239+
SON([('v', 2), ('key', SON([('_id', 1)])), ('name', '_id_')])
22412240
22422241
:Parameters:
22432242
- `session` (optional): a

0 commit comments

Comments
 (0)