ã“Reä ã @ sP d d l Z d d l Z d d l m Z d d „ Z d d „ Z d d „ Z d S) é N)Úsixc C so t | t j ƒ r" t j d | ƒ Sy4 | j d ƒ } t j d | ƒ } | j d ƒ } Wn t k
rj Yn X| S)NZNFDzutf-8)Ú
isinstancer Ú text_typeÚunicodedataÚ normalizeÚdecodeÚencodeÚUnicodeError)Úpath© r úŽ/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/unicode_utils.pyÚ decompose s
r
c C sr t | t j ƒ r | St j ƒ p% d } | d f } x7 | D]/ } y | j | ƒ SWq; t k
ri w; Yq; Xq; Wd S)zY
Ensure that the given path is decoded,
NONE when no expected encoding works
zutf-8N)r r r ÚsysÚgetfilesystemencodingr ÚUnicodeDecodeError)r
Zfs_encÚ
candidatesÚencr r r Úfilesys_decode s
r c C s. y | j | ƒ SWn t k
r) d SYn Xd S)z/turn unicode encoding into a functional routineN)r ÚUnicodeEncodeError)Ústringr r r r Ú
try_encode' s
r )r r Zsetuptools.externr r
r r r r r r Ú