From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:32:38 +0000 (+0100) Subject: [3.12] Explicitly import `urllib.error` in `urllib.robotparser` (GH-128737) (#128794) X-Git-Tag: v3.12.9~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=552b2a0f6eef913f5de8d6c9927296e7c30198f1;p=thirdparty%2FPython%2Fcpython.git [3.12] Explicitly import `urllib.error` in `urllib.robotparser` (GH-128737) (#128794) 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> --- diff --git a/Lib/urllib/robotparser.py b/Lib/urllib/robotparser.py index 24ee198c355f..409f2b2e48de 100644 --- a/Lib/urllib/robotparser.py +++ b/Lib/urllib/robotparser.py @@ -11,6 +11,7 @@ """ import collections +import urllib.error import urllib.parse import urllib.request