Your IP : 18.117.74.47


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

U

�Qab��@s8ddlZddlZddlmZdd�Zdd�Zdd�ZdS)	�N)�sixcCsVt|tj�rt�d|�Sz$|�d�}t�d|�}|�d�}Wntk
rPYnX|S)NZNFD�utf-8)�
isinstancer�	text_type�unicodedataZ	normalize�decode�encode�UnicodeError)�path�r�</usr/lib/python3.8/site-packages/setuptools/unicode_utils.py�	decomposes
r
c	Cs\t|tj�r|St��pd}|df}|D].}z|�|�WStk
rTYq(Yq(Xq(dS)zY
    Ensure that the given path is decoded,
    NONE when no expected encoding works
    rN)rrr�sys�getfilesystemencodingr�UnicodeDecodeError)r
Zfs_encZ
candidates�encrrr�filesys_decodesrcCs(z|�|�WStk
r"YdSXdS)z/turn unicode encoding into a functional routineN)r�UnicodeEncodeError)�stringrrrr�
try_encode'sr)rrZsetuptools.externrr
rrrrrr�<module>s


?>