From 5a2517f4115916bee9e55d99dab93a8b6ca4e185 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 12 Feb 2020 14:55:01 +0900 Subject: 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 Tested-by: David Pursehouse --- command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'command.py') diff --git a/command.py b/command.py index 9e113f1a..4f6515e7 100644 --- a/command.py +++ b/command.py @@ -123,9 +123,9 @@ class Command(object): project = None if os.path.exists(path): oldpath = None - while path and \ - path != oldpath and \ - path != manifest.topdir: + while (path and + path != oldpath and + path != manifest.topdir): try: project = self._by_path[path] break -- cgit v1.2.3-54-g00ecf