o ,º] ã@s<dZddlmZddlmZdddœZGdd„dejƒZd S) atFixer that changes unicode to str and unichr to chr, but -- unlike the lib2to3 fix_unicode.py fixer, does not change u"..." into "...". The reason is that Py3.3+ supports the u"..." string prefix, and, if present, the prefix may provide useful information for disambiguating between byte strings and unicode strings, which is often the hardest part of the porting task. é)Útoken)Ú fixer_baseÚchrÚstr)ÚunichrÚunicodec@seZdZdZdZdd„ZdS)ÚFixUnicodeKeepUTz'unicode' | 'unichr'cCs(|jtjkr| ¡}t|j|_|SdS)N)ÚtyperÚNAMEÚcloneÚ_mappingÚvalue)ÚselfÚnodeÚresultsÚnew©rúF/usr/lib/python3/dist-packages/libfuturize/fixes/fix_unicode_keep_u.pyÚ transforms  ýzFixUnicodeKeepU.transformN)Ú__name__Ú __module__Ú __qualname__Ú BM_compatibleÚPATTERNrrrrrrs rN)Ú__doc__Ú lib2to3.pgen2rÚlib2to3rr ÚBaseFixrrrrrÚs