Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / MinGW / RCCOM.py
index 45683ddc42dcaec7df2fcb3eea6cea6b0bd2acfb..dadfea5a8dc47426e1d63a2e2ac6c9fba4064f31 100644 (file)
@@ -44,7 +44,7 @@ import sys
 outfile = open(sys.argv[1], 'wb')
 for f in sys.argv[2:]:
     infile = open(f, 'rb')
-    for l in filter(lambda l: l != '/*rc*/\\n', infile.readlines()):
+    for l in [l for l in infile.readlines() if l != '/*rc*/\\n']:
         outfile.write(l)
 sys.exit(0)
 """)