U if@s8ddlmZddlmZdddZGdddejZdS) )token) fixer_basechrstr)ZunichrZunicodecs,eZdZdZdZfddZddZZS) FixUnicodeTzSTRING | 'unicode' | 'unichr'cs"tt|||d|jk|_dS)Nunicode_literals)superr start_treeZfuture_featuresr)selfZtreefilename __class__>/opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_unicode.pyr szFixUnicode.start_treecCs|jtjkr$|}t|j|_|S|jtjkr|j}|jsj|ddkrjd|krjddd| dD}|ddkr|dd}||jkr|S|}||_|SdS) Nz'"\z\\cSs g|]}|ddddqS)z\uz\\uz\Uz\\U)replace).0vrrr sz(FixUnicode.transform..ZuU) typerNAMEZclone_mappingvalueSTRINGrjoinsplit)r ZnodeZresultsnewvalrrr transforms"       zFixUnicode.transform)__name__ __module__ __qualname__Z BM_compatibleZPATTERNr r __classcell__rrr rrs rN)Zpgen2rrrZBaseFixrrrrr s