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 /subcmds/selfupdate.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 'subcmds/selfupdate.py')
-rw-r--r-- | subcmds/selfupdate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/selfupdate.py b/subcmds/selfupdate.py index 00376b66..983fd630 100644 --- a/subcmds/selfupdate.py +++ b/subcmds/selfupdate.py | |||
@@ -12,7 +12,7 @@ | |||
12 | # See the License for the specific language governing permissions and | 12 | # See the License for the specific language governing permissions and |
13 | # limitations under the License. | 13 | # limitations under the License. |
14 | 14 | ||
15 | from optparse import SUPPRESS_HELP | 15 | import optparse |
16 | import sys | 16 | import sys |
17 | 17 | ||
18 | from command import Command, MirrorSafeCommand | 18 | from command import Command, MirrorSafeCommand |
@@ -52,7 +52,7 @@ need to be performed by an end-user. | |||
52 | "--repo-upgraded", | 52 | "--repo-upgraded", |
53 | dest="repo_upgraded", | 53 | dest="repo_upgraded", |
54 | action="store_true", | 54 | action="store_true", |
55 | help=SUPPRESS_HELP, | 55 | help=optparse.SUPPRESS_HELP, |
56 | ) | 56 | ) |
57 | 57 | ||
58 | def Execute(self, opt, args): | 58 | def Execute(self, opt, args): |