summaryrefslogtreecommitdiffstats
path: root/test/Fortran/SHF77COMSTR.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Fortran/SHF77COMSTR.py')
-rw-r--r--test/Fortran/SHF77COMSTR.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Fortran/SHF77COMSTR.py b/test/Fortran/SHF77COMSTR.py
index 9ca6631..7a43a4a 100644
--- a/test/Fortran/SHF77COMSTR.py
+++ b/test/Fortran/SHF77COMSTR.py
@@ -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)
""")