U
ÀÒ.e$ ã @ s8 d dl mZ G dd„ deƒZeddd�Zeddd�Zd S )
é )Úparsec s( e Zd ZdZ‡ fdd„Zdd„ Z‡ ZS )ÚPackageIndexzGRepresents a Package Index and provides easier access to endpoints
c sD t t| ƒ ¡ || _t |¡j| _| d¡| _| d¡| _ || _
d S )NZsimpleZpypi)Úsuperr Ú__init__ÚurlÚurllib_parseZurlsplitZnetlocÚ
_url_for_pathZ
simple_urlZpypi_urlÚfile_storage_domain)Úselfr r ©Ú __class__© ú>/usr/lib/python3.8/site-packages/pip/_internal/models/index.pyr s zPackageIndex.__init__c C s t | j|¡S )N)r Zurljoinr )r
Úpathr
r
r r s zPackageIndex._url_for_path)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r Ú
__classcell__r
r
r r r s
r zhttps://pypi.org/zfiles.pythonhosted.org)r zhttps://test.pypi.org/ztest-files.pythonhosted.orgN)Zpip._vendor.six.moves.urllibr r Úobjectr ZPyPIZTestPyPIr
r
r
r Ú