From 54a4e6007ab8be5738525b440cd6836c613517df Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 12 Feb 2020 14:31:05 +0900 Subject: Fix various whitespace issues reported by pyflakes - E201 whitespace after '[' - E202 whitespace before '}' - E221 multiple spaces before operator - E222 multiple spaces after operator - E225 missing whitespace around operator - E226 missing whitespace around arithmetic operator - E231 missing whitespace after ',' - E261 at least two spaces before inline comment - E271 multiple spaces after keyword Fixed automatically with autopep8: git ls-files | grep py$ | xargs autopep8 --in-place \ --select E201,E202,E221,E222,E225,E226,E231,E261,E271 Change-Id: I367113eb8c847eb460532c7c2f8643f33040308c Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254601 Reviewed-by: Mike Frysinger Tested-by: David Pursehouse --- subcmds/abandon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'subcmds/abandon.py') diff --git a/subcmds/abandon.py b/subcmds/abandon.py index cd1d0c40..ba4ef099 100644 --- a/subcmds/abandon.py +++ b/subcmds/abandon.py @@ -79,10 +79,10 @@ It is equivalent to "git branch -D ". if err: for br in err.keys(): - err_msg = "error: cannot abandon %s" %br + err_msg = "error: cannot abandon %s" % br print(err_msg, file=sys.stderr) for proj in err[br]: - print(' '*len(err_msg) + " | %s" % proj.relpath, file=sys.stderr) + print(' ' * len(err_msg) + " | %s" % proj.relpath, file=sys.stderr) sys.exit(1) elif not success: print('error: no project has local branch(es) : %s' % nb, @@ -95,5 +95,5 @@ It is equivalent to "git branch -D ". result = "all project" else: result = "%s" % ( - ('\n'+' '*width + '| ').join(p.relpath for p in success[br])) - print("%s%s| %s\n" % (br,' '*(width-len(br)), result),file=sys.stderr) + ('\n' + ' ' * width + '| ').join(p.relpath for p in success[br])) + print("%s%s| %s\n" % (br, ' ' * (width - len(br)), result), file=sys.stderr) -- cgit v1.2.3-54-g00ecf