
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
U
    a                     @   s,   d dl Z d dlZdd Zdd Zdd ZdS )    Nc                 C   sT   t | trtd| S z$| d} td| } | d} W n tk
rN   Y nX | S )NZNFDutf-8)
isinstancestrunicodedata	normalizedecodeencodeUnicodeError)path r   @/tmp/pip-install-7tp5dx2w/setuptools/setuptools/unicode_utils.py	decompose   s    

r   c              	   C   sZ   t | tr| S t pd}|df}|D ].}z| |W   S  tk
rR   Y q&Y q&X q&dS )zY
    Ensure that the given path is decoded,
    NONE when no expected encoding works
    r   N)r   r   sysgetfilesystemencodingr   UnicodeDecodeError)r
   Zfs_enc
candidatesencr   r   r   filesys_decode   s    
r   c                 C   s(   z|  |W S  tk
r"   Y dS X dS )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   