Skip to content

Commit

Permalink
Merge pull request #672 from camptocamp/py3-tc-copy2
Browse files Browse the repository at this point in the history
Fix tc-copy cannot import name 'imap'
  • Loading branch information
sbrunner authored Jan 1, 2021
2 parents 2690c99 + 76b0ffe commit 070b94b
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 070b94b

Please sign in to comment.