Skip to content

Commit 66eb6da

Browse files
Jesse M. HolmesShaneHarvey
authored andcommitted
Update docs to use list_collection_names method (#401)
db.collection_names() is deprecated.
1 parent 481600b commit 66eb6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ of the collections in our database:
142142

143143
.. doctest::
144144

145-
>>> db.collection_names(include_system_collections=False)
145+
>>> db.list_collection_names()
146146
[u'posts']
147147

148148
Getting a Single Document With :meth:`~pymongo.collection.Collection.find_one`

0 commit comments

Comments
 (0)