HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: //opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/unicode_utils.cpython-35.pyc


�Re��@sPddlZddlZddlmZdd�Zdd�Zdd�ZdS)	�N)�sixcCsot|tj�r"tjd|�Sy4|jd�}tjd|�}|jd�}Wntk
rjYnX|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�	decomposes
r
cCsrt|tj�r|Stj�p%d}|df}x7|D]/}y|j|�SWq;tk
riw;Yq;Xq;WdS)zY
    Ensure that the given path is decoded,
    NONE when no expected encoding works
    zutf-8N)rrr�sys�getfilesystemencodingr�UnicodeDecodeError)r
Zfs_enc�
candidates�encrrr�filesys_decodes

rcCs.y|j|�SWntk
r)dSYnXdS)z/turn unicode encoding into a functional routineN)r�UnicodeEncodeError)�stringrrrr�
try_encode's
r)rrZsetuptools.externrr
rrrrrr�<module>s