Skip to content

Commit fbae0bc

Browse files
committed
Clarify comment, since there is no __del__ on asyncio.connection.ConnectionPool
1 parent 819afc3 commit fbae0bc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

redis/asyncio/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,8 @@ def __init__(
206206
"""
207207
kwargs: Dict[str, Any]
208208
# auto_close_connection_pool only has an effect if connection_pool is
209-
# None. This is a similar feature to the missing __del__ to resolve #1103,
210-
# but it accounts for whether a user wants to manually close the connection
211-
# pool, as a similar feature to ConnectionPool's __del__.
209+
# None. It is assumed that if connection_pool is not None, the user
210+
# wants to manage the connection pool themselves.
212211
self.auto_close_connection_pool = (
213212
auto_close_connection_pool if connection_pool is None else False
214213
)

0 commit comments

Comments
 (0)