• File: unicode_utils.cpython-37.opt-1.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/setuptools/__pycache__/unicode_utils.cpython-37.opt-1.pyc
  • Date Modified: 11/13/2023 9:30 PM
  • File size: 1.05 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

mRe@s,ddlZddlZddZddZddZdS)NcCsTt|trtd|Sy$|d}td|}|d}Wntk
rNYnX|S)NZNFDzutf-8)
isinstancestrunicodedataZ	normalizedecodeencodeUnicodeError)pathr	I/opt/alt/python37/lib/python3.7/site-packages/setuptools/unicode_utils.py	decomposes

rc	CsVt|tr|Stpd}|df}x.|D]&}y
||Stk
rLw(Yq(Xq(WdS)zY
    Ensure that the given path is decoded,
    NONE when no expected encoding works
    zutf-8N)rrsysgetfilesystemencodingrUnicodeDecodeError)rZfs_encZ
candidatesencr	r	r
filesys_decodes


rcCs$y
||Stk
rdSXdS)z/turn unicode encoding into a functional routineN)rUnicodeEncodeError)stringrr	r	r

try_encode%s
r)rrrrrr	r	r	r
<module>s