Skip to content

Commit d39de7f

Browse files
authored
Merge pull request #40615 from jorng/swift_build_support_filter
Use list comprehension for filter in swift_build_support
2 parents 56ff22f + ec6bc59 commit d39de7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/swift_build_support/swift_build_support/productpipeline_list_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def infer(self):
141141

142142
# Filter out any of the pipelines that before inference were not
143143
# selected.
144-
enabled_pipeline = filter(lambda x: x is not None, pipeline)
144+
enabled_pipeline = [p for p in pipeline if p is not None]
145145

146146
if self.args.verbose_build:
147147
print("-- Build Graph Inference --")

0 commit comments

Comments
 (0)