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