Since Python 3.x the .sort(...) function cannot take a parameter cmp anymore. Some techniques were updated to to use .sort(key=cmp_to_key(objective.compare)), but this update was missing from these 2 techniques. This patch adds it to both techniques and allows their use with Python 3.x.
Since Python 3.x the .sort(...) function cannot take a parameter cmp anymore. Some techniques were updated to to use .sort(key=cmp_to_key(objective.compare)), but this update was missing from these 2 techniques. This patch adds it to both techniques and allows their use with Python 3.x.