// We computed a value: see whether we can use it.
literal_value = self._select_literal(dep_state.value, variant_value)
if literal_value is not None:
return Return(literal_value)if has_waiting_dep:
return Waiting(dependencies)
return Throw("No source of {}.".format(self))
After Change
// TODO: Multiple successful tasks are not currently supported. We should allow for this// by adding support for "mergeable" products. see:// https://github.com/pantsbuild/pants/issues/2526return Throw(ConflictingProducersError(self.subject, self.product, matches))elif len(matches)== 1:
return Return(matches.values()[0])
return Noop("No source of {}.".format(self))