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>
This commit is contained in:
David Pursehouse 2020-02-12 14:55:01 +09:00
parent 54a4e6007a
commit 5a2517f411

View File

@ -123,9 +123,9 @@ class Command(object):
project = None project = None
if os.path.exists(path): if os.path.exists(path):
oldpath = None oldpath = None
while path and \ while (path and
path != oldpath and \ path != oldpath and
path != manifest.topdir: path != manifest.topdir):
try: try:
project = self._by_path[path] project = self._by_path[path]
break break