summaryrefslogtreecommitdiffstats
path: root/command.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-10-20 06:48:20 -0400
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-20 17:33:03 +0000
commit8dd85218541f66b5c6740e46ebb3ebbcfc585af1 (patch)
tree7b1013f1f5b9c2b428da07566a407d26eec4e9b9 /command.py
parent49c9b068382a4a41352bb3429f6d6881e3ce2c21 (diff)
downloadgit-repo-8dd85218541f66b5c6740e46ebb3ebbcfc585af1.tar.gz
cleanup: leverage yield from in more places
Change-Id: I4f9cb27d89241d3738486764817b51981444a903 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390274 Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com> Commit-Queue: Mike Frysinger <vapier@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'command.py')
-rw-r--r--command.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/command.py b/command.py
index a6189ed6..8c31c184 100644
--- a/command.py
+++ b/command.py
@@ -476,8 +476,7 @@ class Command:
476 top = self.manifest 476 top = self.manifest
477 yield top 477 yield top
478 if not opt.this_manifest_only: 478 if not opt.this_manifest_only:
479 for child in top.all_children: 479 yield from top.all_children
480 yield child
481 480
482 481
483class InteractiveCommand(Command): 482class InteractiveCommand(Command):