Skip to content

Commit

Permalink
string.lowercase --> string.ascii_lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jun 28, 2017
1 parent 5aede9e commit 9d37fa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_tabu_search.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from random import choice, randint, random
from string import lowercase
from string import ascii_lowercase
from Solid.TabuSearch import TabuSearch
from copy import deepcopy

Expand All @@ -13,7 +13,7 @@ def _neighborhood(self):
neighborhood = []
for _ in range(10):
neighbor = deepcopy(member)
neighbor[randint(0,4)] = choice(lowercase)
neighbor[randint(0, 4)] = choice(ascii_lowercase)
neighbor = ''.join(neighbor)
neighborhood.append(neighbor)
return neighborhood
Expand Down

0 comments on commit 9d37fa9

Please sign in to comment.