Commit 0876afcd authored by Ximin Luo's avatar Ximin Luo

use a list comprehension for slightly more idiomatic python than map/lambda

parent 225b0e05
......@@ -314,7 +314,7 @@ def build(script, source_root, dist_root, artifact_pattern, testbed, artifact_st
# testbed.execute(['ls', '-l', source_root])
# testbed.execute(['stat', source_root])
# testbed.execute(['stat', built_artifact])
patterns = " ".join(map(lambda x: os.path.join(source_root, x), shlex.split(artifact_pattern)))
patterns = " ".join(os.path.join(source_root, part) for part in shlex.split(artifact_pattern))
['sh', '-ec', 'mkdir -p "%s" && cp -R -t "%s" %s && touch -d@0 "%s" "%s"/*' %
(dist_root, dist_root, patterns, dist_root, dist_root)])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment