specifiers))
for name, updater in
StateUpdateMethod.stateupdaters.iteritems()]
priorities.sort(key=lambda elem: elem[1], reverse=True)
// If the list is empty or the first (=best) priority is 0, we did not
// find anything suitable
if len(priorities) == 0 or priorities[0][1] == 0:
After Change
for name, stateupdater in StateUpdateMethod.stateupdaters:
if stateupdater.can_integrate(equations, namespace, specifiers):
best_stateupdater = (name, stateupdater)
break
// No suitable stat updater has been found
if best_stateupdater is None:
raise ValueError(("No stateupdater that is suitable for the given "