]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Explicitly import `urllib.error` in `urllib.robotparser` (GH-128737) (#128794)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Jan 2025 16:32:38 +0000 (17:32 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Jan 2025 16:32:38 +0000 (16:32 +0000)
Explicitly import `urllib.error` in `urllib.robotparser` (GH-128737)
(cherry picked from commit 53e8942e6938df3a32b783815f1bd4b76eed3dd0)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/urllib/robotparser.py

index 24ee198c355f56cb69c764a34430f25cd1717c0e..409f2b2e48de6eec26b931c9353edd5a82d2b50f 100644 (file)
@@ -11,6 +11,7 @@
 """
 
 import collections
+import urllib.error
 import urllib.parse
 import urllib.request