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/upload.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/upload.py')
-rw-r--r-- | subcmds/upload.py | 22 |
1 files changed, 11 insertions, 11 deletions
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/ | |||
218 | print('Upload project %s/ to remote branch %s%s:' % | 218 | print('Upload project %s/ to remote branch %s%s:' % |
219 | (project.relpath, destination, ' (draft)' if opt.draft else '')) | 219 | (project.relpath, destination, ' (draft)' if opt.draft else '')) |
220 | print(' branch %s (%2d commit%s, %s):' % ( | 220 | print(' branch %s (%2d commit%s, %s):' % ( |
221 | name, | 221 | name, |
222 | len(commit_list), | 222 | len(commit_list), |
223 | len(commit_list) != 1 and 's' or '', | 223 | len(commit_list) != 1 and 's' or '', |
224 | date)) | 224 | date)) |
225 | for commit in commit_list: | 225 | for commit in commit_list: |
226 | print(' %s' % commit) | 226 | print(' %s' % commit) |
227 | 227 | ||
@@ -422,18 +422,18 @@ Gerrit Code Review: https://www.gerritcodereview.com/ | |||
422 | else: | 422 | else: |
423 | fmt = '\n (%s)' | 423 | fmt = '\n (%s)' |
424 | print(('[FAILED] %-15s %-15s' + fmt) % ( | 424 | print(('[FAILED] %-15s %-15s' + fmt) % ( |
425 | branch.project.relpath + '/', | 425 | branch.project.relpath + '/', |
426 | branch.name, | 426 | branch.name, |
427 | str(branch.error)), | 427 | str(branch.error)), |
428 | file=sys.stderr) | 428 | file=sys.stderr) |
429 | print() | 429 | print() |
430 | 430 | ||
431 | for branch in todo: | 431 | for branch in todo: |
432 | if branch.uploaded: | 432 | if branch.uploaded: |
433 | print('[OK ] %-15s %s' % ( | 433 | print('[OK ] %-15s %s' % ( |
434 | branch.project.relpath + '/', | 434 | branch.project.relpath + '/', |
435 | branch.name), | 435 | branch.name), |
436 | file=sys.stderr) | 436 | file=sys.stderr) |
437 | 437 | ||
438 | if have_errors: | 438 | if have_errors: |
439 | sys.exit(1) | 439 | sys.exit(1) |