summaryrefslogtreecommitdiffstats
path: root/git_config.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2023-08-21 21:26:51 -0400
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-08-22 18:22:49 +0000
commit06ddc8c50a7e802dbaf8468144c2b5773cda3714 (patch)
tree32cda2abbdf1848ad88e87456f753ef1b838fcbe /git_config.py
parent16109a66b705211efd25f434201d113628aff04c (diff)
downloadgit-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.py4
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 @@
15import contextlib 15import contextlib
16import datetime 16import datetime
17import errno 17import errno
18from http.client import HTTPException 18import http.client
19import json 19import json
20import os 20import os
21import re 21import 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 )