Server IP : 192.158.238.246 / Your IP : 18.118.212.165 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/distlib/__pycache__/ |
Upload File : |
B :��aQ � @ 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 e�e�ZdZdZG d d � d e�ZdS )� N)�Thread� )�DistlibException)�HTTPBasicAuthHandler�Request�HTTPPasswordMgr�urlparse�build_opener�string_types)�zip_dir�ServerProxyzhttps://pypi.org/pypi�pypic @ s� e Zd ZdZdZd*dd�Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zd+dd�Zd,dd�Z d-dd�Zd.dd�Zdd� Zd/dd�Zd0d d!�Zd1d"d#�Zd$d%� Zd&d'� Zd2d(d)�ZdS )3�PackageIndexzc This class represents a package index compatible with PyPI, the Python Package Index. s. ----------ThIs_Is_tHe_distlib_index_bouNdaRY_$Nc C s� |pt | _| �� t| j�\}}}}}}|s<|s<|s<|dkrJtd| j ��d| _d| _d| _d| _t t jd��R}xJdD ]B} y(tj | dg||d�} | dkr�| | _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. )ZhttpZhttpszinvalid repository: %sN�w)�gpgZgpg2z --version)�stdout�stderrr )� DEFAULT_INDEX�url�read_configurationr r �password_handler�ssl_verifierr �gpg_home�open�os�devnull� subprocess� check_call�OSError)�selfr �scheme�netloc�pathZparamsZqueryZfragZsink�s�rc� r% �>/opt/alt/python37/lib/python3.7/site-packages/distlib/index.py�__init__$ s&