ó v®¸Qc@srdZddlZddlmZddlmZidd6dd 6Zejd ƒZd ej fd „ƒYZ dS( sJFixer that changes unicode to str, unichr to chr, and u"..." into "...". iÿÿÿÿNi(ttoken(t fixer_baseuchruunichrustruunicodeu[uU][rR]?[\'\"]t FixUnicodecBseZeZdZd„ZRS(sSTRING | 'unicode' | 'unichr'cCs}|jtjkr2|jƒ}t|j|_|S|jtjkrytj|jƒry|jƒ}|jd|_|SndS(Ni( ttypeRtNAMEtclonet_mappingtvaluetSTRINGt _literal_retmatch(tselftnodetresultstnew((s//sys/lib/python2.7/lib2to3/fixes/fix_unicode.pyt transforms  (t__name__t __module__tTruet BM_compatibletPATTERNR(((s//sys/lib/python2.7/lib2to3/fixes/fix_unicode.pyR s( t__doc__tretpgen2RtRRtcompileR tBaseFixR(((s//sys/lib/python2.7/lib2to3/fixes/fix_unicode.pyts