diff options
author | David Pursehouse <dpursehouse@collab.net> | 2020-02-12 14:55:01 +0900 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2020-02-12 06:32:47 +0000 |
commit | 5a2517f4115916bee9e55d99dab93a8b6ca4e185 (patch) | |
tree | 042a693802e988e7cd17a9efb86a96a1b6a8da8d /command.py | |
parent | 54a4e6007ab8be5738525b440cd6836c613517df (diff) | |
download | git-repo-5a2517f4115916bee9e55d99dab93a8b6ca4e185.tar.gz |
command: Add parentheses on wrapped condition
Surround the condition with parentheses rather than using
backslashes. This prevents confusion about indentation when
running flake8/autoflake8.
Change-Id: I01775b96f817ee616f545b55369a4864fa1d6712
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254603
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: David Pursehouse <dpursehouse@collab.net>
Diffstat (limited to 'command.py')
-rw-r--r-- | command.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -123,9 +123,9 @@ class Command(object): | |||
123 | project = None | 123 | project = None |
124 | if os.path.exists(path): | 124 | if os.path.exists(path): |
125 | oldpath = None | 125 | oldpath = None |
126 | while path and \ | 126 | while (path and |
127 | path != oldpath and \ | 127 | path != oldpath and |
128 | path != manifest.topdir: | 128 | path != manifest.topdir): |
129 | try: | 129 | try: |
130 | project = self._by_path[path] | 130 | project = self._by_path[path] |
131 | break | 131 | break |