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