]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-102591: Document that urlcleanup resets the global opener (GH-153562) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 11 Jul 2026 21:20:42 +0000 (23:20 +0200)
committerGitHub <noreply@github.com>
Sat, 11 Jul 2026 21:20:42 +0000 (14:20 -0700)
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 <senthil@python.org>
Doc/library/urllib.request.rst

index 17e33795f3b9a0a71d51c17d9dda2148102081d2..50a5249fd16bd3ac0109dee3bab5e270b8a0199a 100644 (file)
@@ -1490,7 +1490,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