def _find_lineage_for_domains(config, domains):
 if config.duplicate:
  return ('newcert', None)
 (ident_names_cert, subset_names_cert) = cert_manager.find_duplicative_certs(config, domains)
 if ((ident_names_cert is None) and (subset_names_cert is None)):
  return ('newcert', None)
 if (ident_names_cert is not None):
  return _handle_identical_cert_request(config, ident_names_cert)
 elif (subset_names_cert is not None):
  return _handle_subset_cert_request(config, domains, subset_names_cert)

def _find_lineage_for_domains ( config , domains ) : if config . duplicate : return ( 'newcert' , None ) ( ident_names_cert , subset_names_cert ) = cert_manager . find_duplicative_certs ( config , domains ) if ( ( ident_names_cert is None ) and ( subset_names_cert is None ) ) : return ( 'newcert' , None ) if ( ident_names_cert is not None ) : return _handle_identical_cert_request ( config , ident_names_cert ) elif ( subset_names_cert is not None ) : return _handle_subset_cert_request ( config , domains , subset_names_cert )
determine whether there are duplicated names and how to handle them .