diff options
author | Mike Frysinger <vapier@google.com> | 2023-08-21 21:26:51 -0400 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-08-22 18:22:49 +0000 |
commit | 06ddc8c50a7e802dbaf8468144c2b5773cda3714 (patch) | |
tree | 32cda2abbdf1848ad88e87456f753ef1b838fcbe /git_config.py | |
parent | 16109a66b705211efd25f434201d113628aff04c (diff) | |
download | git-repo-06ddc8c50a7e802dbaf8468144c2b5773cda3714.tar.gz |
tweak stdlib imports to follow Google style guide
Google Python style guide says to import modules.
Clean up all our stdlib imports. Leave the repo ones alone
for now as that's a much bigger shave.
Change-Id: Ida42fc2ae78b86e6b7a6cbc98f94ca04b295f8cc
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/383714
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Mike Frysinger <vapier@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'git_config.py')
-rw-r--r-- | git_config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git_config.py b/git_config.py index 87ed9765..971066ef 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -15,7 +15,7 @@ | |||
15 | import contextlib | 15 | import contextlib |
16 | import datetime | 16 | import datetime |
17 | import errno | 17 | import errno |
18 | from http.client import HTTPException | 18 | import http.client |
19 | import json | 19 | import json |
20 | import os | 20 | import os |
21 | import re | 21 | import re |
@@ -650,7 +650,7 @@ class Remote(object): | |||
650 | raise UploadError("%s: %s" % (self.review, str(e))) | 650 | raise UploadError("%s: %s" % (self.review, str(e))) |
651 | except urllib.error.URLError as e: | 651 | except urllib.error.URLError as e: |
652 | raise UploadError("%s: %s" % (self.review, str(e))) | 652 | raise UploadError("%s: %s" % (self.review, str(e))) |
653 | except HTTPException as e: | 653 | except http.client.HTTPException as e: |
654 | raise UploadError( | 654 | raise UploadError( |
655 | "%s: %s" % (self.review, e.__class__.__name__) | 655 | "%s: %s" % (self.review, e.__class__.__name__) |
656 | ) | 656 | ) |