Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/distutils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/distutils/__pycache__/config.cpython-311.opt-1.pyc
�

�,dW��R�dZddlZddlmZddlZddlmZdZGd�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�`�eZdZdZdZdZdZdZdddezfdgZd	gZ	d
�Z
d�Zd�Zd
�Z
d�Zd�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 serverr	c�|�tj�tj�d��d��S)zReturns rc file path.�~z.pypirc)�os�path�join�
expanduser��selfs �7/opt/alt/python311/lib64/python3.11/distutils/config.py�_get_rc_filezPyPIRCCommand._get_rc_file's(���w�|�|�B�G�.�.�s�3�3�Y�?�?�?�c��|���}tjtj|tjtjzd��d��5}|�t||fz��ddd��dS#1swxYwYdS)zCreates a default .pypirc file.i��wN)rr�fdopen�open�O_CREAT�O_WRONLY�write�DEFAULT_PYPIRC)r�username�password�rc�fs     r�
_store_pypirczPyPIRCCommand._store_pypirc+s���
�
�
�
 �
 ��
�Y�r�w�r�2�:���#;�U�C�C�S�
I�
I�	;�Q�
�G�G�N�h��%9�9�:�:�:�	;�	;�	;�	;�	;�	;�	;�	;�	;�	;�	;�	;����	;�	;�	;�	;�	;�	;s� B�B�	Bc���|���}tj�|���r�|�d|z��|jp|j}t��}|�|��|�	��}d|vr�|�
dd��}d�|�d��D��}|gkr
d|vrdg}niS|D]�}d|i}|�
|d��|d<d	|jfd
|jfdfD]:\}	}
|�
||	��r|�
||	��||	<�5|
||	<�;|dkr||jdfvr|j|d	<|cS|d|ks|d	|kr|cS��nod|vrkd}|�
|d	��r|�
|d	��}n|j}|�
|d��|�
|d
��|||jd�SiS)zReads the .pypirc file.zUsing PyPI login from %s�	distutilsz
index-serversc�f�g|].}|���dk�|�����/S)�)�strip)�.0�servers  r�
<listcomp>z.PyPIRCCommand._read_pypirc.<locals>.<listcomp>>s<��5�5�5�v�%�|�|�~�~��3�3�#�L�L�N�N�3�3�3r�
rr(r�
repository�realm)rNzserver-loginr)rrr+r(r,)rrr
�exists�announcer+�DEFAULT_REPOSITORYr�read�sections�get�split�
DEFAULT_REALM�
has_option)rrr+�configr1�
index_servers�_serversr(�current�key�defaults           r�_read_pypirczPyPIRCCommand._read_pypirc1s���
�
�
�
 �
 ��
�7�>�>�"���9	5��M�M�4�r�9�:�:�:���C�D�,C�J�$�&�&�F��K�K��O�O�O����(�(�H��h�&�&� &�
�
�;�� H� H�
�5�5�)�/�/��5�5�5�5�5���r�>�>���)�)�$*�8��� "�	�&�'�'�F�'��0�G�*0�*�*�V�Z�*H�*H�G�J�'�+7�*.�*A�*C�*1�4�3E�)F�);�)=�3�3���W�"�,�,�V�S�9�9�3�+1�:�:�f�c�+B�+B�G�C�L�L�+2�G�C�L�L�
�&�(�(�"�t�'>��&G�G�G�04�0G���-�&������)�Z�7�7���-��;�;�&����<�/'�2 �8�+�+�'���$�$�V�\�:�:�9�!'���F�L�!A�!A�J�J�!%�!8�J�$*�J�J�v�z�$B�$B�$*�J�J�v�z�$B�$B�&0�"(�!%�!3�	5�5�5��	rc�l�tj��5tjdt��ddl}ddd��n#1swxYwY|�dd��}|�|��d�dd��}|����	|��S)	z%Read and decode a PyPI HTTP response.�ignorerNzcontent-typez
text/plain��charset�ascii)
�warnings�catch_warnings�simplefilter�DeprecationWarning�cgi�	getheader�parse_headerr2r0�decode)r�responserF�content_type�encodings     r�_read_pypi_responsez!PyPIRCCommand._read_pypi_responseqs���
�
$�
&�
&�	�	��!�(�,>�?�?�?��J�J�J�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	� �)�)�.�,�G�G���#�#�L�1�1�!�4�8�8��G�L�L���}�}���%�%�h�/�/�/s�?�A�Ac�0�d|_d|_d|_dS)zInitialize options.Nr)r+r,�
show_responsers r�initialize_optionsz PyPIRCCommand.initialize_optionszs�������
�����rc�V�|j�|j|_|j�|j|_dSdS)zFinalizes options.N)r+r/r,r4rs r�finalize_optionszPyPIRCCommand.finalize_options�s2���?�"�"�5�D�O��:���+�D�J�J�J��r)�__name__�
__module__�__qualname__�__doc__r/r4r+r,�user_options�boolean_optionsrr!r<rMrPrR�rrrrs���������:���M��J��E�
��	*��
�	 �	3�	4�L�'�'�O�@�@�@�;�;�;�>�>�>�@0�0�0����,�,�,�,�,rr)	rVr�configparserrrB�
distutils.cmdrrrrYrr�<module>r\s�����

�	�	�	�(�(�(�(�(�(�����!�!�!�!�!�!���o,�o,�o,�o,�o,�G�o,�o,�o,�o,�o,r

ZeroDay Forums Mini