Your IP : 18.225.54.147


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

3

9��f��@s8ddlZddlZddlmZdd�Zdd�Zdd�ZdS)	�N)�sixcCsVt|tj�rtjd|�Sy$|jd�}tjd|�}|jd�}Wntk
rPYnX|S)NZNFDzutf-8)�
isinstancer�	text_type�unicodedataZ	normalize�decode�encode�UnicodeError)�path�r
�#/usr/lib/python3.6/unicode_utils.py�	decomposes
rcCsXt|tj�r|Stj�pd}|df}x.|D]&}y
|j|�Stk
rNw*Yq*Xq*WdS)zY
    Ensure that the given path is decoded,
    NONE when no expected encoding works
    zutf-8N)rrr�sys�getfilesystemencodingr�UnicodeDecodeError)r	Zfs_encZ
candidates�encr
r
r�filesys_decodes

rcCs$y
|j|�Stk
rdSXdS)z/turn unicode encoding into a functional routineN)r�UnicodeEncodeError)�stringrr
r
r�
try_encode's
r)rr
Zsetuptools.externrrrrr
r
r
r�<module>s


?>