From 8dd85218541f66b5c6740e46ebb3ebbcfc585af1 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 20 Oct 2023 06:48:20 -0400 Subject: 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 Commit-Queue: Mike Frysinger Tested-by: Mike Frysinger --- command.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'command.py') diff --git a/command.py b/command.py index a6189ed6..8c31c184 100644 --- a/command.py +++ b/command.py @@ -476,8 +476,7 @@ class Command: top = self.manifest yield top if not opt.this_manifest_only: - for child in top.all_children: - yield child + yield from top.all_children class InteractiveCommand(Command): -- cgit v1.2.3-54-g00ecf