Commit 87af081c authored by Stefan Behnel's avatar Stefan Behnel

Simplify some code.

parent 4cb7c99f
...@@ -224,11 +224,9 @@ def create_pipeline(context, mode, exclude_classes=()): ...@@ -224,11 +224,9 @@ def create_pipeline(context, mode, exclude_classes=()):
CoerceCppTemps(context), CoerceCppTemps(context),
GilCheck(), GilCheck(),
] ]
filtered_stages = [] if exclude_classes:
for s in stages: stages = [s for s in stages if s.__class__ not in exclude_classes]
if s.__class__ not in exclude_classes: return stages
filtered_stages.append(s)
return filtered_stages
def create_pyx_pipeline(context, options, result, py=False, exclude_classes=()): def create_pyx_pipeline(context, options, result, py=False, exclude_classes=()):
if py: if py:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment