From: Taeknology <20297177+Taeknology@users.noreply.github.com> Date: Sat, 11 Jul 2026 19:40:09 +0000 (+0900) Subject: gh-102591: Document that urlcleanup resets the global opener (#153562) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=bbd1f2f9e0354f91c5d3c4eb3eb53657265dcc77;p=thirdparty%2FPython%2Fcpython.git gh-102591: Document that urlcleanup resets the global opener (#153562) Co-authored-by: Senthil Kumaran --- diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 03518d49d437..95e4d2627c8b 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