From 4a478edb443864561089b2699c9e65c85fc5e036 Mon Sep 17 00:00:00 2001 From: Raman Tenneti Date: Wed, 17 Nov 2021 18:38:24 -0800 Subject: init, sync: fixed flake8 warnings. Tested: + run_tests + flake8 subcmds/init.py + flake8 subcmds/sync.py Change-Id: Ie337481d8a210bfc49b0745f75c05a308a0e74d3 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/324155 Reviewed-by: Mike Frysinger Tested-by: Raman Tenneti --- subcmds/init.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'subcmds/init.py') diff --git a/subcmds/init.py b/subcmds/init.py index 1fbe4654..e2f34cc8 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -15,7 +15,6 @@ import os import platform import re -import subprocess import sys import urllib.parse @@ -132,8 +131,8 @@ to update the working directory files. 'cannot be re-initialized without --manifest-url/-u') sys.exit(1) - if opt.standalone_manifest or ( - was_standalone_manifest and opt.manifest_url): + if opt.standalone_manifest or (was_standalone_manifest and + opt.manifest_url): m.config.ClearCache() if m.gitdir and os.path.exists(m.gitdir): platform_utils.rmtree(m.gitdir) @@ -486,8 +485,8 @@ to update the working directory files. self.OptionParser.error('--mirror and --use-superproject cannot be ' 'used together.') - if opt.standalone_manifest and ( - opt.manifest_branch or opt.manifest_name != 'default.xml'): + if opt.standalone_manifest and (opt.manifest_branch or + opt.manifest_name != 'default.xml'): self.OptionParser.error('--manifest-branch and --manifest-name cannot' ' be used with --standalone-manifest.') -- cgit v1.2.3-54-g00ecf