Viewing File: /opt/alt/python38/lib/python3.8/site-packages/setuptools/__pycache__/unicode_utils.cpython-38.pyc
U
+’a ã @ 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 ú@/tmp/pip-install-1bd_1mtk/setuptools/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
Back to Directory
File Manager