summaryrefslogtreecommitdiffstats
path: root/test/TEX/TEXCOMSTR.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/TEX/TEXCOMSTR.py')
-rw-r--r--test/TEX/TEXCOMSTR.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/TEX/TEXCOMSTR.py b/test/TEX/TEXCOMSTR.py
index d4ebe57..f1ead7f 100644
--- a/test/TEX/TEXCOMSTR.py
+++ b/test/TEX/TEXCOMSTR.py
@@ -42,7 +42,7 @@ test.write('mytex.py', r"""
import sys
outfile = open(sys.argv[1], 'wb')
infile = open(sys.argv[2], 'rb')
-for l in filter(lambda l: l != '/*tex*/\n', infile.readlines()):
+for l in [l for l in infile.readlines() if l != '/*tex*/\n']:
outfile.write(l)
sys.exit(0)
""")