관리-도구
편집 파일: unicode_utils.cpython-38.pyc
U ���e� � @ s, d dl Z d dlZdd� Zdd� Zdd� ZdS )� Nc C sT t | t�rt�d| �S z$| �d�} t�d| �} | �d�} W n tk rN Y nX | S )NZNFD�utf-8)� isinstance�str�unicodedata� normalize�decode�encode�UnicodeError)�path� r �F/opt/hc_python/lib/python3.8/site-packages/setuptools/unicode_utils.py� decompose s r c C sZ t | t�r| S t�� pd}|df}|D ].}z| �|�W S tk rR Y q&Y q&X q&dS )zY Ensure that the given path is decoded, NONE when no expected encoding works r N)r r �sys�getfilesystemencodingr �UnicodeDecodeError)r Zfs_enc� candidates�encr r r �filesys_decode s r c C s( z| � |�W S tk r" Y 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