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