HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/distutils/__pycache__/config.cpython-310.opt-2.pyc
o

�i��@s:	ddlZddlmZddlmZdZGdd�de�ZdS)�N)�RawConfigParser)�CommandzE[distutils]
index-servers =
    pypi

[pypi]
username:%s
password:%s
c@sfeZdZ	dZdZdZdZdddefdgZdgZd	d
�Z	dd�Z
d
d�Zdd�Zdd�Z
dd�ZdS)�
PyPIRCCommandzhttps://upload.pypi.org/legacy/�pypiNzrepository=�rzurl of repository [default: %s])�
show-responseNz&display full response text from serverrcCs	tj�tj�d�d�S)N�~z.pypirc)�os�path�join�
expanduser��self�r�-/usr/local/lib/python3.10/distutils/config.py�_get_rc_file&szPyPIRCCommand._get_rc_filecCs`	|��}t�t�|tjtjBd�d��}|�t||f�Wd�dS1s)wYdS)Ni��w)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|vr�|�
dd�}dd�|�d�D�}|gkrFd|vrDdg}niS|D]U}d|i}|�
|d	�|d	<d
|jfd|jfdfD]\}	}
|�
||	�rt|�
||	�||	<qa|
||	<qa|dkr�||jdfvr�|j|d
<|S|d|ks�|d
|kr�|SqHiSd
|vr�d
}|�
|d
�r�|�
|d
�}n|j}|�
|d	�|�
|d�|||jd�SiS)NzUsing 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)rNzserver-loginr)rrr$r!r%)rr	r
�existsZannouncer$�DEFAULT_REPOSITORYr�read�sections�get�split�
DEFAULT_REALMZ
has_option)rrr$Zconfigr)Z
index_serversZ_serversr!�current�key�defaultrrr�_read_pypirc0sd
���

��

�zPyPIRCCommand._read_pypirccCs:	ddl}|�dd�}|�|�d�dd�}|���|�S)Nrzcontent-typez
text/plain��charset�ascii)�cgiZ	getheaderZparse_headerr*r(�decode)r�responser4Zcontent_type�encodingrrr�_read_pypi_responseps
z!PyPIRCCommand._read_pypi_responsecCs	d|_d|_d|_dS)Nr)r$r%Z
show_responser
rrr�initialize_optionsws
z PyPIRCCommand.initialize_optionscCs.	|jdur
|j|_|jdur|j|_dSdS)N)r$r'r%r,r
rrr�finalize_options}s

�zPyPIRCCommand.finalize_options)�__name__�
__module__�__qualname__r'r,r$r%Zuser_optionsZboolean_optionsrrr0r8r9r:rrrrrs(���@r)r	�configparserrZ
distutils.cmdrrrrrrr�<module>s