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/__pycache__/unicode_utils.cpython-310.pyc
o

��hu�@s�ddlZddlZddlmZddlmZddlmZdd�Zdd	�Z	d
d�Z
ejfded
efdd�Z
ejfdeded
dfdd�ZGdd�de�ZdS)�N)�RawConfigParser�)�py39)�SetuptoolsDeprecationWarningcCsRt|t�rt�d|�Sz|�d�}t�d|�}|�d�}W|Sty(Y|Sw)N�NFD�utf-8)�
isinstance�str�unicodedata�	normalize�decode�encode�UnicodeError)�path�r�C/usr/local/lib/python3.10/dist-packages/setuptools/unicode_utils.py�	decompose
s

��rc	CsRt|t�r|St��pd}|df}|D]}z|�|�WSty&YqwdS)z]
    Ensure that the given path is decoded,
    ``None`` when no expected encoding works
    rN)rr	�sys�getfilesystemencodingr�UnicodeDecodeError)r�fs_enc�
candidates�encrrr�filesys_decodes
�rcCs"z|�|�WStyYdSw)z/turn unicode encoding into a functional routineN)r
�UnicodeEncodeError)�stringrrrr�
try_encode+s
�r�file�returncCs�zt|ddd��
}|��Wd�WS1swYWdStyMtj||d�t|d|d��}|��Wd�YS1sEwYYdSw)a

    First try to read the file with UTF-8, if there is an error fallback to a
    different encoding ("locale" by default). Returns the content of the file.
    Also useful when reading files that might have been produced by an older version of
    setuptools.
    �rr��encodingN�r�fallback_encoding)�open�readr�_Utf8EncodingNeeded�emit)rr#�frrr�_read_utf8_with_fallback3s(�*��r)�cfgcCsNz
|j|dd�WdSty&tj||d�|��|j||d�YdSw)z�Same idea as :func:`_read_utf8_with_fallback`, but for the
    :meth:`RawConfigParser.read` method.

    This method may call ``cfg.clear()``.
    rr r"N)r%rr&r'�clear)r*rr#rrr�_cfg_read_utf8_with_fallbackCs�r,c@seZdZdZdZdS)r&zZ
    `encoding="utf-8"` fails with {file!r}, trying `encoding={fallback_encoding!r}`.
    a�
    Fallback behavior for UTF-8 is considered **deprecated** and future versions of
    `setuptools` may not implement it.

    Please encode {file!r} with "utf-8" to ensure future builds will succeed.

    If this file was produced by `setuptools` itself, cleaning up the cached files
    and re-building/re-installing the package with a newer version of `setuptools`
    (e.g. by updating `build-system.requires` in its `pyproject.toml`)
    might solve the problem.
    N)�__name__�
__module__�__qualname__�_SUMMARY�_DETAILSrrrrr&Ssr&)rr
�configparserr�compatr�warningsrrrr�LOCALE_ENCODINGr	r)r,r&rrrr�<module>s$���
�