#NEWLINE# def __init__( self , find_links , index_urls , allow_all_prereleases = False , trusted_hosts = None , process_dependency_links = False , session = None , format_control = None ) : #NEWLINE# #INDENT# 'Create a PackageFinder.\n\n        :param format_control: A FormatControl object or None. Used to control\n            the selection of source packages / binary packages when consulting\n            the index and links.\n        ' #NEWLINE# if ( session is None ) : #NEWLINE# #INDENT# raise TypeError ( "PackageFinder() missing 1 required keyword argument: 'session'" ) #NEWLINE# #UNINDENT# self . find_links = [ ] #NEWLINE# for link in find_links : #NEWLINE# #INDENT# if link . startswith ( '~' ) : #NEWLINE# #INDENT# new_link = normalize_path ( link ) #NEWLINE# if os . path . exists ( new_link ) : #NEWLINE# #INDENT# link = new_link #NEWLINE# #UNINDENT# #UNINDENT# self . find_links . append ( link ) #NEWLINE# #UNINDENT# self . index_urls = index_urls #NEWLINE# self . dependency_links = [ ] #NEWLINE# self . logged_links = set ( ) #NEWLINE# self . format_control = ( format_control or FormatControl ( set ( ) , set ( ) ) ) #NEWLINE# self . secure_origins = [ ( '*' , host , '*' ) for host in ( trusted_hosts if trusted_hosts else [ ] ) ] #NEWLINE# self . allow_all_prereleases = allow_all_prereleases #NEWLINE# self . process_dependency_links = process_dependency_links #NEWLINE# self . session = session #NEWLINE# if ( not HAS_TLS ) : #NEWLINE# #INDENT# for link in itertools . chain ( self . index_urls , self . find_links ) : #NEWLINE# #INDENT# parsed = urllib_parse . urlparse ( link ) #NEWLINE# if ( parsed . scheme == 'https' ) : #NEWLINE# #INDENT# logger . warning ( 'pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.' ) #NEWLINE# break