From 76b0ffe63960f8418956d40a964485a578d3f32d Mon Sep 17 00:00:00 2001 From: Sandy Perez Matamoros Date: Wed, 30 Dec 2020 13:20:36 -0500 Subject: [PATCH] Fix tc-copy cannot import name 'imap' --- tc-copy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tc-copy b/tc-copy index a1a293e57..543f73da8 100755 --- a/tc-copy +++ b/tc-copy @@ -78,7 +78,7 @@ def main(argv): else: tilestream = input_tilestore.list() if options.i is not None and options.n is not None: - tilestream = imap(EveryNth(options.n, options.i), tilestream) + tilestream = map(EveryNth(options.n, options.i), tilestream) if options.randomize: tilestream = list(tilestream) random.shuffle(tilestream) @@ -90,7 +90,7 @@ def main(argv): tilestream = map(benchmark.sample(), tilestream) tilestream = input_tilestore.get(tilestream) if benchmark: - tilestream = imap(benchmark.sample("get"), tilestream) + tilestream = map(benchmark.sample("get"), tilestream) for i, g in enumerate(generate): tilestream = g.get(tilestream) if options.benchmark: