HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/setuptools/tests/__pycache__/test_setopt.cpython-310.pyc
o

��hU�@s&ddlZddlmZGdd�d�ZdS)�N)�setoptc@s4eZdZedd��Zedd��Zdd�Zdd�Zd	S)
�TestEditcCsDt��}t|dd��}|�|�Wd�|S1swY|S)N�utf-8��encoding)�configparser�ConfigParser�open�	read_file)�filename�parser�reader�r�G/usr/local/lib/python3.10/dist-packages/setuptools/tests/test_setopt.py�parse_configs
��zTestEdit.parse_configcCs@t|d��}|�|�d��Wd�dS1swYdS)N�wbr)r	�write�encode)�file�content�strmrrr�
write_texts"�zTestEdit.write_textcCsp|�d�}|�t|�d�t�t|�ttdd�d��|�t|��}|�dd�dks,J�|�dd	�dks6J�d
S)zh
        When editing a file, non-ASCII characters encoded in
        UTF-8 should be retained.
        �	setup.cfgu[names]
jaraco=джарако�yes)�other��namesr�jaracouджаракоrN)�joinr�strr�edit_config�dictr�get)�self�tmpdir�configrrrr�test_utf8_encoding_retaineds
z$TestEdit.test_utf8_encoding_retainedcCs^|�d�}|�t|�d�t�t|�ttdd�d��|jdd�}d|vs'J�d	|vs-J�d
S)zG
        When editing a file, case of keys should be retained.
        rz[names]
FoO=bArr)�oTherr�asciir�FoOr'N)rrrrr r!�	read_text)r#r$r%�actualrrr�test_case_retaineds
zTestEdit.test_case_retainedN)�__name__�
__module__�__qualname__�staticmethodrrr&r,rrrrrs

r)r�setuptools.commandrrrrrr�<module>s