ó k޹Sc@sGddlZddlZddlmZd„Zd„Zd„ZdS(iÿÿÿÿN(tunicodecCskt|tƒrtjd|ƒSy4|jdƒ}tjd|ƒ}|jdƒ}Wntk rfnX|S(NtNFDsutf-8(t isinstancetdecoded_stringt unicodedatat normalizetdecodetencodet UnicodeError(tpath((sB/usr/local/lib/python2.7/site-packages/setuptools/unicode_utils.pyt decomposes cCsbtjƒ}t|tƒr|Sx<|dfD].}y|j|ƒSWq,tk rYq,q,Xq,WdS(sY Ensure that the given path is decoded, NONE when no expected encoding works sutf-8N(tsystgetfilesystemencodingRRRtUnicodeDecodeError(R tfs_enctenc((sB/usr/local/lib/python2.7/site-packages/setuptools/unicode_utils.pytfilesys_decodes  cCs*y|j|ƒSWntk r%dSXdS(s/turn unicode encoding into a functional routineN(RtUnicodeEncodeErrortNone(tstringR((sB/usr/local/lib/python2.7/site-packages/setuptools/unicode_utils.pyt try_encode$s (RR tsetuptools.compatRRR RR(((sB/usr/local/lib/python2.7/site-packages/setuptools/unicode_utils.pyts