uawdijnntqw1x1x1
IP : 18.116.89.70
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
lib64
/
fipscheck
/
..
/
libdnf
/
..
/
python3.8
/
distutils
/
__pycache__
/
config.cpython-38.opt-1.pyc
/
/
U e5d��@s<dZddlZddlmZddlmZdZGdd�de�ZdS)z�distutils.pypirc Provides the PyPIRCCommand class, the base class for the command classes that uses .pypirc in the distutils.command package. �N)�RawConfigParser)�CommandzE[distutils] index-servers = pypi [pypi] username:%s password:%s c@sheZdZdZdZdZdZdZdddefdgZd gZ d d�Z dd �Zdd�Zdd�Z dd�Zdd�ZdS)� PyPIRCCommandz;Base command that knows how to handle the .pypirc file zhttps://upload.pypi.org/legacy/�pypiNzrepository=�rzurl of repository [default: %s])� show-responseNz&display full response text from serverrcCstj�tj�d�d�S)zReturns rc file path.�~z.pypirc)�os�path�join� expanduser��self�r�(/usr/lib64/python3.8/distutils/config.py�_get_rc_file&szPyPIRCCommand._get_rc_filec CsH|��}t�t�|tjtjBd�d��}|�t||f�W5QRXdS)zCreates a default .pypirc file.i��wN)rr �fdopen�open�O_CREAT�O_WRONLY�write�DEFAULT_PYPIRC)r�username�password�rc�frrr� _store_pypirc*s zPyPIRCCommand._store_pypirccCs�|��}tj�|��r�|�d|�|jp.|j}t�}|�|�|� �}d|k�rF|� dd�}dd�|�d�D�}|gkr�d|kr�dg}niS|D]�}d|i}|� |d �|d <d |jfd|jfdfD].\} } |� || �r�|� || �|| <q�| || <q�|dk�r ||jdfk�r |j|d <|S|d|k�s:|d |kr�|Sq�nRd |k�r�d }|� |d ��rp|� |d �}n|j}|� |d �|� |d�|||jd�SiS)zReads the .pypirc file.zUsing PyPI login from %sZ distutilsz index-serverscSs g|]}|��dkr|���qS)�)�strip)�.0�serverrrr� <listcomp>=s�z.PyPIRCCommand._read_pypirc.<locals>.<listcomp>� rr!r� repository�realm)rNzserver-loginr)rrr$r!r%)rr r �existsZannouncer$�DEFAULT_REPOSITORYr�read�sections�get�split� DEFAULT_REALMZ has_option)rrr$Zconfigr)Z index_serversZ_serversr!Zcurrent�key�defaultrrr�_read_pypirc0sb ��� � � �zPyPIRCCommand._read_pypirccCs8ddl}|�dd�}|�|�d�dd�}|���|�S)z%Read and decode a PyPI HTTP response.rNzcontent-typez text/plain��charset�ascii)�cgiZ getheaderZparse_headerr*r(�decode)rZresponser3Zcontent_type�encodingrrr�_read_pypi_responsepsz!PyPIRCCommand._read_pypi_responsecCsd|_d|_d|_dS)zInitialize options.Nr)r$r%Z show_responser rrr�initialize_optionswsz PyPIRCCommand.initialize_optionscCs(|jdkr|j|_|jdkr$|j|_dS)zFinalizes options.N)r$r'r%r,r rrr�finalize_options}s zPyPIRCCommand.finalize_options)�__name__� __module__�__qualname__�__doc__r'r,r$r%Zuser_optionsZboolean_optionsrrr/r6r7r8rrrrrs&���@r)r<r ZconfigparserrZ distutils.cmdrrrrrrr�<module>s
/home/../lib64/fipscheck/../libdnf/../python3.8/distutils/__pycache__/config.cpython-38.opt-1.pyc