diff --git a/CHANGES/11972.bugfix.rst b/CHANGES/11972.bugfix.rst new file mode 100644 index 00000000000..8a6c2f56f28 --- /dev/null +++ b/CHANGES/11972.bugfix.rst @@ -0,0 +1,2 @@ +Fixed false-positive :py:class:`DeprecationWarning` for passing ``enable_cleanup_closed=True`` to :py:class:`~aiohttp.TCPConnector` specifically on Python 3.12.7. +-- by :user:`Robsdedude`. diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 16889761889..0c2db273d92 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -322,6 +322,7 @@ Roman Markeloff Roman Podoliaka Roman Postnov Rong Zhang +Rouven Bauer Samir Akarioh Samuel Colvin Samuel Gaist diff --git a/aiohttp/connector.py b/aiohttp/connector.py index 2cdc425d83f..0a4f79c0154 100644 --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -75,9 +75,9 @@ 3, 13, 1, -) or sys.version_info < (3, 12, 7) +) or sys.version_info < (3, 12, 8) # Cleanup closed is no longer needed after https://github.com/python/cpython/pull/118960 -# which first appeared in Python 3.12.7 and 3.13.1 +# which first appeared in Python 3.12.8 and 3.13.1 __all__ = (