Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / CXX / SHCXXCOM.py
index 7c5e45f283868ac26ddf9c6e0c7e326efb616448..0f0940bb45d29130a3a56334200c262f70baed0e 100644 (file)
@@ -41,7 +41,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[:7] != '/*c++*/', infile.readlines()):
+for l in [l for l in infile.readlines() if l[:7] != '/*c++*/']:
     outfile.write(l)
 sys.exit(0)
 """)