diff options
author | David Pursehouse <dpursehouse@collab.net> | 2020-02-12 14:58:39 +0900 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2020-02-12 06:36:22 +0000 |
commit | abdf7500612f1d115863ba8f026ddbea1e5a1f28 (patch) | |
tree | 2b87f056bdf4fb53a170fc9121c2f5d1557bb48f /subcmds/init.py | |
parent | 0ab95ba6d010abe5d615fa070e404582aca1d90a (diff) | |
download | git-repo-abdf7500612f1d115863ba8f026ddbea1e5a1f28.tar.gz |
Fix indentation issues reported by flake8
- E121 continuation line under-indented for hanging indent
- E122 continuation line missing indentation or outdented
- E125 continuation line with same indent as next logical line
- E126 continuation line over-indented for hanging indent
- E127 continuation line over-indented for visual indent
- E128 continuation line under-indented for visual indent
- E129 visually indented line with same indent as next logical line
- E131 continuation line unaligned for hanging indent
Fixed automatically with autopep8:
git ls-files | grep py$ | xargs autopep8 --in-place \
--select E121,E122,E125,E126,E127,E128,E129,E131
Change-Id: Ifd95fb8e6a1a4d6e9de187b5787d64a6326dd249
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254605
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: David Pursehouse <dpursehouse@collab.net>
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 191f02b2..7181b86f 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -223,7 +223,7 @@ to update the working directory files. | |||
223 | platformize = lambda x: 'platform-' + x | 223 | platformize = lambda x: 'platform-' + x |
224 | if opt.platform == 'auto': | 224 | if opt.platform == 'auto': |
225 | if (not opt.mirror and | 225 | if (not opt.mirror and |
226 | not m.config.GetString('repo.mirror') == 'true'): | 226 | not m.config.GetString('repo.mirror') == 'true'): |
227 | groups.append(platformize(platform.system().lower())) | 227 | groups.append(platformize(platform.system().lower())) |
228 | elif opt.platform == 'all': | 228 | elif opt.platform == 'all': |
229 | groups.extend(map(platformize, all_platforms)) | 229 | groups.extend(map(platformize, all_platforms)) |
@@ -280,10 +280,10 @@ to update the working directory files. | |||
280 | m.config.SetString('repo.submodules', 'true') | 280 | m.config.SetString('repo.submodules', 'true') |
281 | 281 | ||
282 | if not m.Sync_NetworkHalf(is_new=is_new, quiet=opt.quiet, | 282 | if not m.Sync_NetworkHalf(is_new=is_new, quiet=opt.quiet, |
283 | clone_bundle=not opt.no_clone_bundle, | 283 | clone_bundle=not opt.no_clone_bundle, |
284 | current_branch_only=opt.current_branch_only, | 284 | current_branch_only=opt.current_branch_only, |
285 | no_tags=opt.no_tags, submodules=opt.submodules, | 285 | no_tags=opt.no_tags, submodules=opt.submodules, |
286 | clone_filter=opt.clone_filter): | 286 | clone_filter=opt.clone_filter): |
287 | r = m.GetRemote(m.remote.name) | 287 | r = m.GetRemote(m.remote.name) |
288 | print('fatal: cannot obtain manifest %s' % r.url, file=sys.stderr) | 288 | print('fatal: cannot obtain manifest %s' % r.url, file=sys.stderr) |
289 | 289 | ||