a (šRe­ã@s,ddlZddlZdd„Zdd„Zdd„ZdS)éNcCsRt|tƒrt d|¡Sz$| d¡}t d|¡}| d¡}WntyLYn0|S)NZNFDúutf-8)Ú isinstanceÚstrÚ unicodedataÚ normalizeÚdecodeÚencodeÚ UnicodeError)Úpath©r úŽ/builddir/build/BUILDROOT/alt-python39-setuptools-58.3.0-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/setuptools/unicode_utils.pyÚ decomposes     r c CsXt|tƒr|St ¡pd}|df}|D],}z| |¡WStyPYq&Yq&0q&dS)zY Ensure that the given path is decoded, NONE when no expected encoding works rN)rrÚsysÚgetfilesystemencodingrÚUnicodeDecodeError)r Zfs_encÚ candidatesÚencr r r Úfilesys_decodes   rcCs&z | |¡WSty YdS0dS)z/turn unicode encoding into a functional routineN)rÚUnicodeEncodeError)Ústringrr r r Ú try_encode%s  r)rrr rrr r r r Ús