From 0bcffd865616a0a14b7e9f2b03d77da2444d3025 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 20 Oct 2023 23:29:42 +0545 Subject: cleanup: use new dict & set generator styles Change-Id: Ie34ac33ada7855945c77238da3ce644f8a9f8306 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390374 Tested-by: Mike Frysinger Commit-Queue: Mike Frysinger Reviewed-by: Aravind Vasudevan --- command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'command.py') diff --git a/command.py b/command.py index 8c31c184..fa48264b 100644 --- a/command.py +++ b/command.py @@ -290,7 +290,7 @@ class Command: output.end() def _ResetPathToProjectMap(self, projects): - self._by_path = dict((p.worktree, p) for p in projects) + self._by_path = {p.worktree: p for p in projects} def _UpdatePathToProjectMap(self, project): self._by_path[project.worktree] = project -- cgit v1.2.3-54-g00ecf