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