ã“Reäã@sPddlZddlZddlmZdd„Zdd„Zdd„ZdS) éN)Úsixc Csot|tjƒr"tjd|ƒSy4|jdƒ}tjd|ƒ}|jdƒ}Wntk rjYnX|S)NZNFDzutf-8)Ú isinstancerÚ text_typeÚ unicodedataÚ normalizeÚdecodeÚencodeÚ UnicodeError)Úpath©r úŽ/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/unicode_utils.pyÚ decomposes r c Csrt|tjƒr|Stjƒp%d}|df}x7|D]/}y|j|ƒSWq;tk riw;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|ƒSWntk r)dSYnXdS)z/turn unicode encoding into a functional routineN)rÚUnicodeEncodeError)Ústringrr r r Ú try_encode's r)rrZsetuptools.externrr rrr r r r Ús