Cleanup: prefer parenthesis over line continuations in Python scripts

This commit is contained in:
Campbell Barton
2025-01-21 23:30:55 +11:00
parent 70f44c6204
commit abd933d6b0
4 changed files with 26 additions and 14 deletions

View File

@@ -93,10 +93,12 @@ class TestQueue:
def find(self, revision: str, test: str, category: str, device_id: str) -> dict:
for entry in self.entries:
if entry.revision == revision and \
entry.test == test and \
entry.category == category and \
entry.device_id == device_id:
if (
entry.revision == revision and
entry.test == test and
entry.category == category and
entry.device_id == device_id
):
return entry
return None