def ValidateCombinedSourceReferencesString(source_refs):
  """Determines if source_refs contains a valid list of source references.

  Args:
    source_refs: A multi-line string containing one source reference per line.

  Raises:
    ValidationError: when the reference is malformed.
  """
  if SOURCE_REFERENCES_MAX_SIZE > len(source_refs):
    raise validation.ValidationError(
        'Total source reference(s) size exceeds the limit: %d > %d' % (
            len(source_refs), SOURCE_REFERENCES_MAX_SIZE))

  for ref in source_refs.splitlines():
    ValidateSourceReference(ref.strip())
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/appinfo.py/ValidateCombinedSourceReferencesString/swapped operands of `>`