summaryrefslogtreecommitdiffstats
path: root/git_refs.py
diff options
context:
space:
mode:
authorDavid Pursehouse <dpursehouse@collab.net>2020-02-12 14:31:05 +0900
committerDavid Pursehouse <dpursehouse@collab.net>2020-02-12 06:00:16 +0000
commit54a4e6007ab8be5738525b440cd6836c613517df (patch)
tree4e13a2ed3775463c0459754452b3888b7bb98b28 /git_refs.py
parent42339d7e52d6de6c702b78be7f5014e13646cc1b (diff)
downloadgit-repo-54a4e6007ab8be5738525b440cd6836c613517df.tar.gz
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 <vapier@google.com> Tested-by: David Pursehouse <dpursehouse@collab.net>
Diffstat (limited to 'git_refs.py')
-rw-r--r--git_refs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/git_refs.py b/git_refs.py
index debd4cbf..02b98cba 100644
--- a/git_refs.py
+++ b/git_refs.py
@@ -18,12 +18,12 @@ import os
18from repo_trace import Trace 18from repo_trace import Trace
19import platform_utils 19import platform_utils
20 20
21HEAD = 'HEAD' 21HEAD = 'HEAD'
22R_CHANGES = 'refs/changes/' 22R_CHANGES = 'refs/changes/'
23R_HEADS = 'refs/heads/' 23R_HEADS = 'refs/heads/'
24R_TAGS = 'refs/tags/' 24R_TAGS = 'refs/tags/'
25R_PUB = 'refs/published/' 25R_PUB = 'refs/published/'
26R_M = 'refs/remotes/m/' 26R_M = 'refs/remotes/m/'
27 27
28 28
29class GitRefs(object): 29class GitRefs(object):