• File: unicode_utils.cpython-38.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python38/lib/python3.8/site-packages/setuptools/__pycache__/unicode_utils.cpython-38.pyc
  • Date Modified: 11/13/2023 9:41 PM
  • File size: 1.14 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
U

Re@s,ddlZddlZddZddZddZdS)NcCsTt|trtd|Sz$|d}td|}|d}Wntk
rNYnX|S)NZNFDutf-8)
isinstancestrunicodedata	normalizedecodeencodeUnicodeError)pathr/builddir/build/BUILDROOT/alt-python38-setuptools-58.3.0-2.el7.x86_64/opt/alt/python38/lib/python3.8/site-packages/setuptools/unicode_utils.py	decomposes

r
c	CsZt|tr|Stpd}|df}|D].}z||WStk
rRYq&Yq&Xq&dS)zY
    Ensure that the given path is decoded,
    NONE when no expected encoding works
    rN)rrsysgetfilesystemencodingrUnicodeDecodeError)r
Zfs_enc
candidatesencrrrfilesys_decodes
rcCs(z||WStk
r"YdSXdS)z/turn unicode encoding into a functional routineN)rUnicodeEncodeError)stringrrrr
try_encode%sr)rrr
rrrrrr<module>s