summaryrefslogtreecommitdiffstats
path: root/command.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-10-20 23:29:42 +0545
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-21 00:55:01 +0000
commit0bcffd865616a0a14b7e9f2b03d77da2444d3025 (patch)
treeef325cc1740f5b48b157eff1cbcb11b0fe2d43b9 /command.py
parent7393f6bc414ae5d140101fffcb48148a36b80f64 (diff)
downloadgit-repo-0bcffd865616a0a14b7e9f2b03d77da2444d3025.tar.gz
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 <vapier@google.com> Commit-Queue: Mike Frysinger <vapier@google.com> Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com>
Diffstat (limited to 'command.py')
-rw-r--r--command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.py b/command.py
index 8c31c184..fa48264b 100644
--- a/command.py
+++ b/command.py
@@ -290,7 +290,7 @@ class Command:
290 output.end() 290 output.end()
291 291
292 def _ResetPathToProjectMap(self, projects): 292 def _ResetPathToProjectMap(self, projects):
293 self._by_path = dict((p.worktree, p) for p in projects) 293 self._by_path = {p.worktree: p for p in projects}
294 294
295 def _UpdatePathToProjectMap(self, project): 295 def _UpdatePathToProjectMap(self, project):
296 self._by_path[project.worktree] = project 296 self._by_path[project.worktree] = project