Skip to content

Commit

Permalink
Merge pull request DEAP#396 from ndunnewind/itertools-repeat-bug
Browse files Browse the repository at this point in the history
Incorrect usage of itertools.repeat
  • Loading branch information
fmder authored Sep 7, 2019
2 parents aae8645 + 5f58b4c commit 16acfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deap/benchmarks/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def __init__(self, bounds, type):
try:
self.bounds = tuple(bounds)
except TypeError:
self.bounds = itertools.repeat(bounds)
self.bounds = repeat(bounds)

if type == "mirror":
self.bound = self._mirror
Expand Down

0 comments on commit 16acfb7

Please sign in to comment.