File: //opt/alt/python37/lib/python3.7/site-packages/setuptools/__pycache__/unicode_utils.cpython-37.pyc
B
m�Re� � @ s, d dl Z d dlZdd� Zdd� Zdd� ZdS )� Nc C sT t | t�rt�d| �S y$| �d�} t�d| �} | �d�} W n tk
rN Y nX | S )NZNFDzutf-8)�
isinstance�str�unicodedataZ normalize�decode�encode�UnicodeError)�path� r �I/opt/alt/python37/lib/python3.7/site-packages/setuptools/unicode_utils.py� decompose s
r c C sV t | t�r| S t�� pd}|df}x.|D ]&}y
| �|�S tk
rL w(Y q(X q(W dS )zY
Ensure that the given path is decoded,
NONE when no expected encoding works
zutf-8N)r r �sys�getfilesystemencodingr �UnicodeDecodeError)r Zfs_encZ
candidates�encr r r
�filesys_decode s
r c C s$ y
| � |�S tk
r dS X dS )z/turn unicode encoding into a functional routineN)r �UnicodeEncodeError)�stringr r r r
�
try_encode% s
r )r r r r r r r r r
�<module> s