Skip to content

Commit 2b6bb4b

Browse files
[PR #11972/4a51c4ba backport][3.14] NEEDS_CLEANUP_CLOSED fixed in Python 3.12.8 (#11976)
**This is a backport of PR #11972 as merged into master (4a51c4b).** Co-authored-by: Robsdedude <[email protected]>
1 parent d3405d9 commit 2b6bb4b

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGES/11972.bugfix.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed false-positive :py:class:`DeprecationWarning` for passing ``enable_cleanup_closed=True`` to :py:class:`~aiohttp.TCPConnector` specifically on Python 3.12.7.
2+
-- by :user:`Robsdedude`.

CONTRIBUTORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ Robert Nikolich
313313
Roman Podoliaka
314314
Roman Postnov
315315
Rong Zhang
316+
Rouven Bauer
316317
Samir Akarioh
317318
Samuel Colvin
318319
Samuel Gaist

aiohttp/connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@
7575
3,
7676
13,
7777
1,
78-
) or sys.version_info < (3, 12, 7)
78+
) or sys.version_info < (3, 12, 8)
7979
# Cleanup closed is no longer needed after https://github.com/python/cpython/pull/118960
80-
# which first appeared in Python 3.12.7 and 3.13.1
80+
# which first appeared in Python 3.12.8 and 3.13.1
8181

8282

8383
__all__ = (

0 commit comments

Comments
 (0)