Skip to content

Commit e03822d

Browse files
[PR #11972/4a51c4ba backport][3.13] NEEDS_CLEANUP_CLOSED fixed in Python 3.12.8 (#11975)
**This is a backport of PR #11972 as merged into master (4a51c4b).** Co-authored-by: Robsdedude <dev@rouvenbauer.de>
1 parent 0c2e9da commit e03822d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

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
@@ -311,6 +311,7 @@ Robert Nikolich
311311
Roman Podoliaka
312312
Roman Postnov
313313
Rong Zhang
314+
Rouven Bauer
314315
Samir Akarioh
315316
Samuel Colvin
316317
Samuel Gaist

aiohttp/connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@
9292
3,
9393
13,
9494
1,
95-
) or sys.version_info < (3, 12, 7)
95+
) or sys.version_info < (3, 12, 8)
9696
# Cleanup closed is no longer needed after https://github.com/python/cpython/pull/118960
97-
# which first appeared in Python 3.12.7 and 3.13.1
97+
# which first appeared in Python 3.12.8 and 3.13.1
9898

9999

100100
__all__ = (

0 commit comments

Comments
 (0)