From ccbf2e833f88c4e8e8d38c94b6cdcf385573b048 Mon Sep 17 00:00:00 2001 From: Taeknology <20297177+Taeknology@users.noreply.github.com> Date: Sat, 11 Jul 2026 20:09:48 +0900 Subject: [PATCH] gh-102591: Document that urlcleanup resets the global opener --- Doc/library/urllib.request.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 03518d49d437ce..95e4d2627c8b23 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -1486,7 +1486,8 @@ some point in the future. .. function:: urlcleanup() Cleans up temporary files that may have been left behind by previous - calls to :func:`urlretrieve`. + calls to :func:`urlretrieve`. It also resets the default global opener + installed by :func:`install_opener`. :mod:`!urllib.request` Restrictions