Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / Fortran / F95COMSTR.py
index 1f9734a562601438a024890776b48383a4eb57f7..5d162f967081958fb896664eaf91a6b1c3855b0f 100644 (file)
@@ -37,7 +37,7 @@ import sys
 fline = '#'+sys.argv[1]+'\n'
 outfile = open(sys.argv[2], 'wb')
 infile = open(sys.argv[3], 'rb')
-for l in filter(lambda l, fl=fline: l != fl, infile.readlines()):
+for l in [l for l in infile.readlines() if l != fline]:
     outfile.write(l)
 sys.exit(0)
 """)