Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / Fortran / SHFORTRANCOMSTR.py
index a2cf47cb1b947475244f0b791c9b5921791bb4d6..3b801dbe0e3368c988132da92c174cf7cb9b8cc3 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)
 """)