관리-도구
편집 파일: unicode_utils.cpython-37.pyc
B ��Re� � @ 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.el8.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 �<module> s