Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / CC / SHCCCOM.py
index ab61035cb48521f4b4dd3764eafc062e4596c745..0e87b6216a99526e918115ff8ac794adf9e4e4ec 100644 (file)
@@ -42,7 +42,7 @@ test.write('mycc.py', r"""
 import sys
 outfile = open(sys.argv[1], 'wb')
 infile = open(sys.argv[2], 'rb')
-for l in filter(lambda l: l[:6] != '/*cc*/', infile.readlines()):
+for l in [l for l in infile.readlines() if l[:6] != '/*cc*/']:
     outfile.write(l)
 sys.exit(0)
 """)