def getServiceEndpoints(input_url, flt=None):
 result = discover(input_url)
 try:
  endpoints = applyFilter(result.normalized_uri, result.response_text, flt)
 except XRDSError as err:
  raise DiscoveryFailure(str(err), None)
 return (result.normalized_uri, endpoints)

def getServiceEndpoints ( input_url , flt = None ) : result = discover ( input_url ) try : endpoints = applyFilter ( result . normalized_uri , result . response_text , flt ) except XRDSError as err : raise DiscoveryFailure ( str ( err ) , None ) return ( result . normalized_uri , endpoints )
perform the yadis protocol on the input url and return an iterable of resulting endpoint objects .