def _get_results_for(self, function, urls, resolve_redirects):
        """Get results of given function for given arguments.

        :param function: a function to be called
        :param urls: an iterable containing initial URL values
        :param resolve_redirects: a boolean value. If True, all valid
        redirect location values will be resolved for given URLs and
        tested with them.
        """
        urls_to_test = urls
        if resolve_redirects:
            urls_to_test = self.redirect_resolver.get_urls_and_locations(urls)
        if self.whitelist is not None:
            generator = self.whitelist.filter_matching(urls_to_test)
            urls_to_test = list(set(urls_to_test) - set(generator))
        return function(urls_to_test)
def _get_results_for ( self , function , urls , resolve_redirects ) : urls_to_test = urls if resolve_redirects : urls_to_test = self . redirect_resolver . get_urls_and_locations ( urls ) if self . whitelist is not None : generator = self . whitelist . filter_matching ( urls_to_test ) urls_to_test = list ( set ( urls_to_test ) - set ( generator ) ) return function ( urls_to_test )
Get results of given function for given arguments.

        :param function: a function to be called
        :param urls: an iterable containing initial URL values
        :param resolve_redirects: a boolean value. If True, all valid
        redirect location values will be resolved for given URLs and
        tested with them.