(options, suppress_no_index=False)
return search_scope
:param suppress_no_index: Whether to ignore the --no-index option
        when constructing the SearchScope object.
:param suppress_no_index: Whether to ignore the --no-index option
        when constructing the SearchScope object.
: param suppress_no_index : Whether to ignore the -- no - index option when constructing the SearchScope object .
def make_search_scope(options, suppress_no_index=False):
    # type: (Values, bool) -> SearchScope
    """
    :param suppress_no_index: Whether to ignore the --no-index option
        when constructing the SearchScope object.
    """
    index_urls = [options.index_url] + options.extra_index_urls
    if options.no_index and not suppress_no_index:
        logger.debug(
            'Ignoring indexes: %s',
            ','.join(redact_password_from_url(url) for url in index_urls),
        )
        index_urls = []

    # Make sure find_links is a list before passing to create().
    find_links = options.find_links or []

    search_scope = SearchScope.create(
        find_links=find_links, index_urls=index_urls,
    )

    return search_scope
def make_search_scope ( options , suppress_no_index = False ) : # type: (Values, bool) -> SearchScope index_urls = [ options . index_url ] + options . extra_index_urls if options . no_index and not suppress_no_index : logger . debug ( 'Ignoring indexes: %s' , ',' . join ( redact_password_from_url ( url ) for url in index_urls ) , ) index_urls = [ ] # Make sure find_links is a list before passing to create(). find_links = options . find_links or [ ] search_scope = SearchScope . create ( find_links = find_links , index_urls = index_urls , ) return search_scope