Commit 3dc27da6 authored by Sergey Ulanov's avatar Sergey Ulanov Committed by Commit Bot

[Fuchsia] Replace list.map with list comprehension

Updated the script to use list comprehension, which is supported
on all versions of python above 2.0

TBR=wez@chromium.org

Change-Id: I8f7ffad323c40a51e77374c8baba40ebbf463061
Reviewed-on: https://chromium-review.googlesource.com/900132Reviewed-by: default avatarSergey Ulanov <sergeyu@chromium.org>
Reviewed-by: default avatarWez <wez@chromium.org>
Commit-Queue: Sergey Ulanov <sergeyu@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#534170}
parent b6bbb641
......@@ -88,7 +88,7 @@ def RunScp(config_path, host, port, sources, dest, direction):
if direction == COPY_TO_TARGET:
dest = "%s:%s" % (host, dest)
else:
sources = sources.map(lambda source : "%s:%s" % (host, source))
sources = ["%s:%s" % (host, source) for source in sources]
scp_command += ['-F', config_path, '-P', str(port)]
scp_command += sources
......
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