Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / CXX / SHCXXCOMSTR.py
index afe647a8fb405d548bfdce1118573ff07476fb82..716c9adf93e33ca3dbc5d71be61ed38be5514864 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 != '/*c++*/\n', infile.readlines()):
+for l in [l for l in infile.readlines() if l != '/*c++*/\n']:
     outfile.write(l)
 sys.exit(0)
 """)