B
mRe @ s, d dl Z d dlZdd Zdd Zdd ZdS ) Nc C sT t | trtd| S y$| d} td| } | d} W n tk
rN Y nX | S )NZNFDzutf-8)
isinstancestrunicodedataZ normalizedecodeencodeUnicodeError)path r I/opt/alt/python37/lib/python3.7/site-packages/setuptools/unicode_utils.py decompose s
r c C sV t | tr| 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 sysgetfilesystemencodingr UnicodeDecodeError)r Zfs_encZ
candidatesencr 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