ó
0ħE^c           @   sN   d  d l  m Z d e f d     YZ e d d d Z e d d d Z d	 S(
   i˙˙˙˙(   t   parset   PackageIndexc           B   s    e  Z d  Z d   Z d   Z RS(   sG   Represents a Package Index and provides easier access to endpoints
    c         C   sb   t  t |   j   | |  _ t j |  j |  _ |  j d  |  _ |  j d  |  _	 | |  _
 d  S(   Nt   simplet   pypi(   t   superR   t   __init__t   urlt   urllib_parset   urlsplitt   netloct   _url_for_patht
   simple_urlt   pypi_urlt   file_storage_domain(   t   selfR   R   (    (    s7   /tmp/pip-build-iCT__d/pip/pip/_internal/models/index.pyR      s    	c         C   s   t  j |  j |  S(   N(   R   t   urljoinR   (   R   t   path(    (    s7   /tmp/pip-build-iCT__d/pip/pip/_internal/models/index.pyR
      s    (   t   __name__t
   __module__t   __doc__R   R
   (    (    (    s7   /tmp/pip-build-iCT__d/pip/pip/_internal/models/index.pyR      s   	s   https://pypi.org/R   s   files.pythonhosted.orgs   https://test.pypi.org/s   test-files.pythonhosted.orgN(   t   pip._vendor.six.moves.urllibR    R   t   objectR   t   PyPIt   TestPyPI(    (    (    s7   /tmp/pip-build-iCT__d/pip/pip/_internal/models/index.pyt   <module>   s
   