B
Ï•’¬;âíQã @ 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ÚunicodedataÚ normalizeÚdecodeÚencodeÚUnicodeError)Úpath© r
úŽ/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el9.x86_64/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_encÚ
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 Ú