Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / TEX / LATEXCOMSTR.py
index 9383e8785adaf8633aa6b6b872fda984b68c8d12..4e1b93c25fb64391c60c20aa7318b0d873d7ea30 100644 (file)
@@ -42,7 +42,7 @@ test.write('mylatex.py', r"""
 import sys
 outfile = open(sys.argv[1], 'wb')
 infile = open(sys.argv[2], 'rb')
-for l in filter(lambda l: l != '/*latex*/\n', infile.readlines()):
+for l in [l for l in infile.readlines() if l != '/*latex*/\n']:
     outfile.write(l)
 sys.exit(0)
 """)