Replace map with list comprehension

svn: r10850
This commit is contained in:
Gerald Britton 2008-07-09 20:34:17 +00:00
parent 587e367836
commit 9d0a699e4f

View File

@ -109,7 +109,7 @@ class Test2(U.TestCase):
class Test3(U.TestCase): class Test3(U.TestCase):
here = tu.absdir() here = tu.absdir()
bases = (here, tempfile.gettempdir()) bases = (here, tempfile.gettempdir())
asubs = map(lambda b: os.path.join(b,"test_sub"), bases) asubs = [os.path.join(b,"test_sub") for b in bases]
home= os.environ["HOME"] home= os.environ["HOME"]
if home: if home:
home_junk = os.path.join(home,"test_junk") home_junk = os.path.join(home,"test_junk")