the optimization names are not case sensitive anymore

This commit is contained in:
Romain Bignon 2010-06-30 10:09:12 +02:00
commit a9364aa349

View file

@ -67,6 +67,7 @@ class ICapDating(ICap):
raise NotImplementedError()
def get_optim(self, optim):
optim = optim.upper()
if not hasattr(self, 'OPTIM_%s' % optim):
raise OptimizationNotFound()