U
    „~$h  ã                   @   s2   d dl ZG dd„ dƒZeddd�Zeddd�ZdS )	é    Nc                       sH   e Zd ZdZdddddgZeeddœ‡ fd	d
„Zeedœdd„Z‡  ZS )ÚPackageIndexzBRepresents a Package Index and provides easier access to endpointsÚurlÚnetlocÚ
simple_urlÚpypi_urlÚfile_storage_domainN)r   r   Úreturnc                    sB   t ƒ  ¡  || _tj |¡j| _|  d¡| _|  d¡| _	|| _
d S )NÚsimpleÚpypi)ÚsuperÚ__init__r   ÚurllibÚparseÚurlsplitr   Ú_url_for_pathr   r   r   )Úselfr   r   ©Ú	__class__© ú>/tmp/pip-unpacked-wheel-g27rp152/pip/_internal/models/index.pyr   	   s    
zPackageIndex.__init__)Úpathr   c                 C   s   t j | j|¡S )N)r   r   Úurljoinr   )r   r   r   r   r   r      s    zPackageIndex._url_for_path)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Ústrr   r   Ú__classcell__r   r   r   r   r      s   r   zhttps://pypi.org/zfiles.pythonhosted.org)r   zhttps://test.pypi.org/ztest-files.pythonhosted.org)Úurllib.parser   r   ÚPyPIÚTestPyPIr   r   r   r   Ú<module>   s    ÿ