Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / TEX / TEXCOM.py
index 6336730e06503e3e57f35a130b7a8bb76daf5f69..1cadd6340ff6649b92560fb27df1a57ce34329c7 100644 (file)
@@ -41,7 +41,7 @@ test.write('mytex.py', r"""
 import sys
 outfile = open(sys.argv[1], 'wb')
 infile = open(sys.argv[2], 'rb')
-for l in filter(lambda l: l != '/*tex*/\n', infile.readlines()):
+for l in [l for l in infile.readlines() if l != '/*tex*/\n']:
     outfile.write(l)
 sys.exit(0)
 """)