From 71e75445081f9f98bfb5341b1e44adcb3ca18cf2 Mon Sep 17 00:00:00 2001 From: Taeknology <20297177+Taeknology@users.noreply.github.com> Date: Sun, 12 Jul 2026 04:40:09 +0900 Subject: [PATCH] gh-102591: Document that urlcleanup resets the global opener (GH-153562) (cherry picked from commit bbd1f2f9e0354f91c5d3c4eb3eb53657265dcc77) Co-authored-by: Taeknology <20297177+Taeknology@users.noreply.github.com> Co-authored-by: Senthil Kumaran --- 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 945c96892f592a3..4107017021f5abf 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -1442,7 +1442,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`. .. class:: URLopener(proxies=None, **x509)