diff options
Diffstat (limited to 'test/AS/ASPPCOMSTR.py')
-rw-r--r-- | test/AS/ASPPCOMSTR.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/AS/ASPPCOMSTR.py b/test/AS/ASPPCOMSTR.py index 20e3de0..7de3b12 100644 --- a/test/AS/ASPPCOMSTR.py +++ b/test/AS/ASPPCOMSTR.py @@ -29,8 +29,6 @@ Test that the $ASPPCOMSTR construction variable allows you to customize the displayed assembler string. """ -import string - import TestSCons _python_ = TestSCons._python_ @@ -43,7 +41,7 @@ test.write('myas.py', r""" import sys infile = open(sys.argv[2], 'rb') outfile = open(sys.argv[1], 'wb') -for l in filter(lambda l: l != "#as\n", infile.readlines()): +for l in [l for l in infile.readlines() if l != "#as\n"]: outfile.write(l) sys.exit(0) """) |