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 /git_command.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 'git_command.py')
-rw-r--r-- | git_command.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/git_command.py b/git_command.py index 5034ae12..df39ec09 100644 --- a/git_command.py +++ b/git_command.py | |||
@@ -57,16 +57,16 @@ def ssh_sock(create=True): | |||
57 | if not os.path.exists(tmp_dir): | 57 | if not os.path.exists(tmp_dir): |
58 | tmp_dir = tempfile.gettempdir() | 58 | tmp_dir = tempfile.gettempdir() |
59 | _ssh_sock_path = os.path.join( | 59 | _ssh_sock_path = os.path.join( |
60 | tempfile.mkdtemp('', 'ssh-', tmp_dir), | 60 | tempfile.mkdtemp('', 'ssh-', tmp_dir), |
61 | 'master-%r@%h:%p') | 61 | 'master-%r@%h:%p') |
62 | return _ssh_sock_path | 62 | return _ssh_sock_path |
63 | 63 | ||
64 | def _ssh_proxy(): | 64 | def _ssh_proxy(): |
65 | global _ssh_proxy_path | 65 | global _ssh_proxy_path |
66 | if _ssh_proxy_path is None: | 66 | if _ssh_proxy_path is None: |
67 | _ssh_proxy_path = os.path.join( | 67 | _ssh_proxy_path = os.path.join( |
68 | os.path.dirname(__file__), | 68 | os.path.dirname(__file__), |
69 | 'git_ssh') | 69 | 'git_ssh') |
70 | return _ssh_proxy_path | 70 | return _ssh_proxy_path |
71 | 71 | ||
72 | def _add_ssh_client(p): | 72 | def _add_ssh_client(p): |