Viewing File: /opt/alt/python38/lib/python3.8/site-packages/setuptools/__pycache__/unicode_utils.cpython-38.pyc

U

+’a­ã@s,ddlZddlZdd„Zdd„Zdd„ZdS)éNcCsTt|tƒrt d|¡Sz$| d¡}t d|¡}| d¡}Wntk
rNYnX|S)NZNFDúutf-8)Ú
isinstanceÚstrÚunicodedataÚ	normalizeÚdecodeÚencodeÚUnicodeError)Úpath©rú@/tmp/pip-install-1bd_1mtk/setuptools/setuptools/unicode_utils.pyÚ	decomposes

r
c	CsZt|tƒr|St ¡pd}|df}|D].}z| |¡WStk
rRYq&Yq&Xq&dS)zY
    Ensure that the given path is decoded,
    NONE when no expected encoding works
    rN)rrÚsysÚgetfilesystemencodingrÚUnicodeDecodeError)r
Zfs_encÚ
candidatesÚencrrrÚfilesys_decodes
rcCs(z| |¡WStk
r"YdSXdS)z/turn unicode encoding into a functional routineN)rÚUnicodeEncodeError)ÚstringrrrrÚ
try_encode%sr)rrr
rrrrrrÚ<module>s
Back to Directory File Manager