Use yield from instead of looping and yielding
authorBen Steffen <bds@mit.edu>
Tue, 26 Nov 2019 21:44:38 +0000 (16:44 -0500)
committerBen Steffen <bds@mit.edu>
Tue, 26 Nov 2019 21:44:38 +0000 (16:44 -0500)
python/invirt/config.py

index 6763c5c..4d88f6f 100644 (file)
@@ -55,8 +55,7 @@ def run_parts_list(dirname):
 
 def list_files():
     yield SRC_PATH
-    for name in run_parts_list(SRC_DIRPATH):
-        yield name
+    yield from run_parts_list(SRC_DIRPATH)
 
 def load_master():
     config = dict()