summaryrefslogtreecommitdiffstats
path: root/test/TEX/PDFLATEXCOM.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/TEX/PDFLATEXCOM.py')
-rw-r--r--test/TEX/PDFLATEXCOM.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/TEX/PDFLATEXCOM.py b/test/TEX/PDFLATEXCOM.py
index 36372a8..09283f3 100644
--- a/test/TEX/PDFLATEXCOM.py
+++ b/test/TEX/PDFLATEXCOM.py
@@ -41,7 +41,7 @@ test.write('mypdflatex.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)
""")