(self, urls)
Add `urls` to the list that will be prescanned for searches
Add `urls` to the list that will be prescanned for searches
Add urls to the list that will be prescanned for searches
def add_find_links(self, urls):
        """Add `urls` to the list that will be prescanned for searches"""
        for url in urls:
            if (
                self.to_scan is None  # if we have already "gone online"
                or not URL_SCHEME(url)  # or it's a local file/directory
                or url.startswith('file:')
                or list(distros_for_url(url))  # or a direct package link
            ):
                # then go ahead and process it now
                self.scan_url(url)
            else:
                # otherwise, defer retrieval till later
                self.to_scan.append(url)
def add_find_links ( self , urls ) : for url in urls : if ( self . to_scan is None # if we have already "gone online" or not URL_SCHEME ( url ) # or it's a local file/directory or url . startswith ( 'file:' ) or list ( distros_for_url ( url ) ) # or a direct package link ) : # then go ahead and process it now self . scan_url ( url ) else : # otherwise, defer retrieval till later self . to_scan . append ( url )