diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2023-10-20 06:48:20 -0400 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-20 17:33:03 +0000 |
commit | 8dd85218541f66b5c6740e46ebb3ebbcfc585af1 (patch) | |
tree | 7b1013f1f5b9c2b428da07566a407d26eec4e9b9 /command.py | |
parent | 49c9b068382a4a41352bb3429f6d6881e3ce2c21 (diff) | |
download | git-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.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 | ||
483 | class InteractiveCommand(Command): | 482 | class InteractiveCommand(Command): |