Skip to content

Commit 7bd1fac

Browse files
committed
Obsolete docstring for end_session
1 parent 577c167 commit 7bd1fac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pymongo/client_session.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,7 @@ def __init__(self, client, server_session, options, authset):
238238
def end_session(self):
239239
"""Finish this session. If a transaction has started, abort it.
240240
241-
It is an error to use the session or any derived
242-
:class:`~pymongo.database.Database`,
243-
:class:`~pymongo.collection.Collection`, or
244-
:class:`~pymongo.cursor.Cursor` after the session has ended.
241+
It is an error to use the session after the session has ended.
245242
"""
246243
self._end_session(lock=True)
247244

0 commit comments

Comments
 (0)