@printing_func
def select_package_address(jvm_package_name, address_families):
 addresses = [address for address_family in address_families for address in address_family.addressables.keys()]
 if (len(addresses) == 0):
  raise ValueError(u'No targets existed in {} to provide {}'.format(address_families, jvm_package_name))
 elif (len(addresses) > 1):
  raise ValueError(u'Multiple targets might be able to provide {}:\n  {}'.format(jvm_package_name, u'\n  '.join((str(a) for a in addresses))))
 return addresses[0]

@ printing_func def select_package_address ( jvm_package_name , address_families ) : addresses = [ address for address_family in address_families for address in address_family . addressables . keys ( ) ] if ( len ( addresses ) == 0 ) : raise ValueError ( u'No targets existed in {} to provide {}' . format ( address_families , jvm_package_name ) ) elif ( len ( addresses ) > 1 ) : raise ValueError ( u'Multiple targets might be able to provide {}:\n  {}' . format ( jvm_package_name , u'\n  ' . join ( ( str ( a ) for a in addresses ) ) ) ) return addresses [ 0 ]
return the address from the given addressfamilies which provides the given package .