Skip to content

Commit

Permalink
Fix tc-copy cannot import name 'imap'
Browse files Browse the repository at this point in the history
  • Loading branch information
sandypm007 authored and sbrunner committed Jan 1, 2021
1 parent 2690c99 commit 76b0ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tc-copy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit 76b0ffe

Please sign in to comment.