(cls, options)
return index_urls or None
Return a list of index urls from user-provided options.
Return a list of index urls from user-provided options.
Return a list of index urls from user - provided options .
def _get_index_urls(cls, options):
        """Return a list of index urls from user-provided options."""
        index_urls = []
        if not getattr(options, "no_index", False):
            url = getattr(options, "index_url", None)
            if url:
                index_urls.append(url)
        urls = getattr(options, "extra_index_urls", None)
        if urls:
            index_urls.extend(urls)
        # Return None rather than an empty list
        return index_urls or None
def _get_index_urls ( cls , options ) : index_urls = [ ] if not getattr ( options , "no_index" , False ) : url = getattr ( options , "index_url" , None ) if url : index_urls . append ( url ) urls = getattr ( options , "extra_index_urls" , None ) if urls : index_urls . extend ( urls ) # Return None rather than an empty list return index_urls or None