From 06ddc8c50a7e802dbaf8468144c2b5773cda3714 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 21 Aug 2023 21:26:51 -0400 Subject: 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 Commit-Queue: Mike Frysinger Tested-by: Mike Frysinger --- subcmds/selfupdate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subcmds/selfupdate.py') 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 @@ # See the License for the specific language governing permissions and # limitations under the License. -from optparse import SUPPRESS_HELP +import optparse import sys from command import Command, MirrorSafeCommand @@ -52,7 +52,7 @@ need to be performed by an end-user. "--repo-upgraded", dest="repo_upgraded", action="store_true", - help=SUPPRESS_HELP, + help=optparse.SUPPRESS_HELP, ) def Execute(self, opt, args): -- cgit v1.2.3-54-g00ecf