3 K”Reäã@s8ddlZddlZddlmZdd„Zdd„Zdd„ZdS) éN)Úsixc CsVt|tjƒrtjd|ƒSy$|jdƒ}tjd|ƒ}|jdƒ}Wntk rPYnX|S)NZNFDzutf-8)Ú isinstancerÚ text_typeÚ unicodedataÚ normalizeÚdecodeÚencodeÚ UnicodeError)Úpath©r úŽ/builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/unicode_utils.pyÚ decomposes    r c CsXt|tjƒr|Stjƒpd}|df}x.|D]&}y |j|ƒStk rNw*Yq*Xq*WdS)zY Ensure that the given path is decoded, NONE when no expected encoding works zutf-8N)rrrÚsysÚgetfilesystemencodingrÚUnicodeDecodeError)r Zfs_encÚ candidatesÚencr r r Úfilesys_decodes    rc Cs$y |j|ƒStk rdSXdS)z/turn unicode encoding into a functional routineN)rÚUnicodeEncodeError)Ústringrr r r Ú try_encode's r)rrZsetuptools.externrr rrr r r r Ús