@@ -138,7 +138,7 @@ def __init__(
138
138
139
139
if session :
140
140
self ._session = session
141
- self ._session ._is_attached_to_cursor = True
141
+ self ._session ._attached_to_cursor = True
142
142
else :
143
143
self ._session = None
144
144
@@ -149,7 +149,7 @@ def __init__(
149
149
if not isinstance (limit , int ):
150
150
raise TypeError (f"limit must be an instance of int, not { type (limit )} " )
151
151
validate_boolean ("no_cursor_timeout" , no_cursor_timeout )
152
- if no_cursor_timeout and self ._session and self ._session ._is_implicit :
152
+ if no_cursor_timeout and self ._session and self ._session ._implicit :
153
153
warnings .warn (
154
154
"use an explicit session with no_cursor_timeout=True "
155
155
"otherwise the cursor may still timeout after "
@@ -282,7 +282,7 @@ def clone(self) -> AsyncCursor[_DocumentType]:
282
282
def _clone (self , deepcopy : bool = True , base : Optional [AsyncCursor ] = None ) -> AsyncCursor : # type: ignore[type-arg]
283
283
"""Internal clone helper."""
284
284
if not base :
285
- if self ._session and not self ._session ._is_implicit :
285
+ if self ._session and not self ._session ._implicit :
286
286
base = self ._clone_base (self ._session )
287
287
else :
288
288
base = self ._clone_base (None )
@@ -944,7 +944,7 @@ def session(self) -> Optional[AsyncClientSession]:
944
944
945
945
.. versionadded:: 3.6
946
946
"""
947
- if self ._session and not self ._session ._is_implicit :
947
+ if self ._session and not self ._session ._implicit :
948
948
return self ._session
949
949
return None
950
950
@@ -1035,8 +1035,8 @@ def _die_no_lock(self) -> None:
1035
1035
self ._collection .database .client ._cleanup_cursor_no_lock (
1036
1036
cursor_id , address , self ._sock_mgr , self ._session
1037
1037
)
1038
- if self ._session and self ._session ._is_implicit :
1039
- self ._session ._is_attached_to_cursor = False
1038
+ if self ._session and self ._session ._implicit :
1039
+ self ._session ._attached_to_cursor = False
1040
1040
self ._session = None
1041
1041
self ._sock_mgr = None
1042
1042
@@ -1055,8 +1055,8 @@ async def _die_lock(self) -> None:
1055
1055
self ._sock_mgr ,
1056
1056
self ._session ,
1057
1057
)
1058
- if self ._session and self ._session ._is_implicit :
1059
- self ._session ._is_attached_to_cursor = False
1058
+ if self ._session and self ._session ._implicit :
1059
+ self ._session ._attached_to_cursor = False
1060
1060
self ._session = None
1061
1061
self ._sock_mgr = None
1062
1062
0 commit comments