Your IP : 216.73.216.69


Current Path : /opt/alt/python38/lib/python3.8/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib/python3.8/site-packages/setuptools/__pycache__/unicode_utils.cpython-38.pyc

U

�Re��@s,ddlZddlZdd�Zdd�Zdd�ZdS)�NcCsTt|t�rt�d|�Sz$|�d�}t�d|�}|�d�}Wntk
rNYnX|S)NZNFD�utf-8)�
isinstance�str�unicodedata�	normalize�decode�encode�UnicodeError)�path�r��/builddir/build/BUILDROOT/alt-python38-setuptools-58.3.0-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/setuptools/unicode_utils.py�	decomposes

r
c	CsZt|t�r|St��pd}|df}|D].}z|�|�WStk
rRYq&Yq&Xq&dS)zY
    Ensure that the given path is decoded,
    NONE when no expected encoding works
    rN)rr�sys�getfilesystemencodingr�UnicodeDecodeError)r
Zfs_enc�
candidates�encrrr�filesys_decodes
rcCs(z|�|�WStk
r"YdSXdS)z/turn unicode encoding into a functional routineN)r�UnicodeEncodeError)�stringrrrr�
try_encode%sr)rrr
rrrrrr�<module>s

?>