Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / Fortran / FORTRANMODDIR.py
index 96a341a126366c09226a26f1ef3b8e09d6aded4e..3c14632352ff3a5ec519693c99eb841959f56e99 100644 (file)
@@ -36,12 +36,11 @@ test = TestSCons.TestSCons()
 test.write('myfortran.py', r"""
 import os.path
 import re
-import string
 import sys
 mod_regex = "(?im)^\\s*MODULE\\s+(?!PROCEDURE)(\\w+)"
 contents = open(sys.argv[2]).read()
 modules = re.findall(mod_regex, contents)
-modules = map(lambda m: os.path.join(sys.argv[1], string.lower(m)+'.mod'), modules)
+modules = [os.path.join(sys.argv[1], m.lower()+'.mod') for m in modules]
 for t in sys.argv[3:] + modules:
     open(t, 'wb').write('myfortran.py wrote %s\n' % os.path.split(t)[1])
 sys.exit(0)