summaryrefslogtreecommitdiffstats
path: root/fetch.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2026-10-22 13:15:44 -0400
committergerrit-scoped@luci-project-accounts.iam.gserviceaccount.com <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2026-10-22 17:44:11 -0700
commit2c04b98c60d87ff5442820fc084364748a4a15e8 (patch)
tree3dcd2610198a73d9c59d7f23882c64fa2cd938d2 /fetch.py
parent4212588c2040e0deee26ed97a1d1491a978b79f6 (diff)
downloadgit-repo-2c04b98c60d87ff5442820fc084364748a4a15e8.tar.gz
style: use `import error` everywhere
Align with Google style guides and `import error` as a module rather than import classes out of it. Change-Id: I8686fbe7887bd6ceac7a07877af63934f0d0ddd2 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/647563 Commit-Queue: Mike Frysinger <vapier@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com> Reviewed-by: Insaf Latypov <saferif@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'fetch.py')
-rw-r--r--fetch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fetch.py b/fetch.py
index 509a0fcbd..7e9a528b4 100644
--- a/fetch.py
+++ b/fetch.py
@@ -19,10 +19,10 @@ import sys
19from urllib.parse import urlparse 19from urllib.parse import urlparse
20from urllib.request import urlopen 20from urllib.request import urlopen
21 21
22from error import RepoExitError 22import error
23 23
24 24
25class FetchFileError(RepoExitError): 25class FetchFileError(error.RepoExitError):
26 """Exit error when fetch_file fails.""" 26 """Exit error when fetch_file fails."""
27 27
28 28