/usr/local/lib/python3.6/site-packages/distlib/__pycache__
Edit: /usr/local/lib/python3.6/site-packages/distlib/__pycache__/index.cpython-36.pyc (17091B)
3
0Dg=Q @ s d dl Z d dlZd dlZd dlZd dlZd dlZyd dlmZ W n ek
r` d dl mZ Y nX ddl
mZ ddlm
Z
mZmZmZmZmZ ddlmZmZ ejeZdZdZG d d
d
eZdS ) N)Thread )DistlibException)HTTPBasicAuthHandlerRequestHTTPPasswordMgrurlparsebuild_openerstring_types)zip_dirServerProxyzhttps://pypi.org/pypipypic @ s e Zd ZdZdZd*ddZdd Zdd Zd
d Zdd
Z dd Z
dd Zd+ddZd,ddZ
d-ddZd.ddZdd Zd/ddZd0d d!Zd1d"d#Zd$d% Zd&d' Zd2d(d)ZdS )3PackageIndexzc
This class represents a package index compatible with PyPI, the Python
Package Index.
s. ----------ThIs_Is_tHe_distlib_index_bouNdaRY_$Nc C s |pt | _| j t| j\}}}}}}|s<|s<|s<|dkrJtd| j d| _d| _d| _d| _t t
jdR}xJdD ]B} y(tj
| dg||d }
|
d
kr| | _P W qv tk
r Y qvX qvW W dQ R X dS )
z
Initialise an instance.
:param url: The URL of the index. If not specified, the URL for PyPI is
used.
httphttpszinvalid repository: %sNwgpggpg2z --version)stdoutstderrr )r r )r r )
DEFAULT_INDEXurlread_configurationr r password_handlerssl_verifierr gpg_homeopenosdevnull
subprocess
check_callOSError)selfr schemenetlocpathparamsqueryfragZsinksrc r+ 7/usr/local/lib/python3.6/site-packages/distlib/index.py__init__% s&