From abdf7500612f1d115863ba8f026ddbea1e5a1f28 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 12 Feb 2020 14:58:39 +0900 Subject: 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 Tested-by: David Pursehouse --- subcmds/upload.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'subcmds/upload.py') diff --git a/subcmds/upload.py b/subcmds/upload.py index c0f870eb..180496fc 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py @@ -218,10 +218,10 @@ Gerrit Code Review: https://www.gerritcodereview.com/ print('Upload project %s/ to remote branch %s%s:' % (project.relpath, destination, ' (draft)' if opt.draft else '')) print(' branch %s (%2d commit%s, %s):' % ( - name, - len(commit_list), - len(commit_list) != 1 and 's' or '', - date)) + name, + len(commit_list), + len(commit_list) != 1 and 's' or '', + date)) for commit in commit_list: print(' %s' % commit) @@ -422,18 +422,18 @@ Gerrit Code Review: https://www.gerritcodereview.com/ else: fmt = '\n (%s)' print(('[FAILED] %-15s %-15s' + fmt) % ( - branch.project.relpath + '/', - branch.name, - str(branch.error)), - file=sys.stderr) + branch.project.relpath + '/', + branch.name, + str(branch.error)), + file=sys.stderr) print() for branch in todo: if branch.uploaded: print('[OK ] %-15s %s' % ( - branch.project.relpath + '/', - branch.name), - file=sys.stderr) + branch.project.relpath + '/', + branch.name), + file=sys.stderr) if have_errors: sys.exit(1) -- cgit v1.2.3-54-g00ecf