Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / Fortran / SHF95COMSTR.py
index 01247276c8e81ccfdb82f3a769b57484eadfb16c..5aec6b001d5861c68fd501b3bb1a01559cae3129 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)
 """)