Current Path : /usr/lib/python2.7/lib2to3/fixes/ |
Current File : //usr/lib/python2.7/lib2to3/fixes/fix_unicode.pyc |
ó —|_c @ sr d Z d d l Z d d l m Z d d l m Z i d d 6d d 6Z e j d ƒ Z d e j f d „ ƒ YZ d S( sJ Fixer that changes unicode to str, unichr to chr, and u"..." into "...". iÿÿÿÿNi ( t token( t fixer_baseu chru unichru stru unicodeu [uU][rR]?[\'\"]t FixUnicodec B s e Z e Z d Z d „ Z RS( s STRING | 'unicode' | 'unichr'c C s} | j t j k r2 | j ƒ } t | j | _ | S| j t j k ry t j | j ƒ ry | j ƒ } | j d | _ | Sn d S( Ni ( t typeR t NAMEt clonet _mappingt valuet STRINGt _literal_ret match( t selft nodet resultst new( ( s/ /usr/lib/python2.7/lib2to3/fixes/fix_unicode.pyt transform s ( t __name__t __module__t Truet BM_compatiblet PATTERNR ( ( ( s/ /usr/lib/python2.7/lib2to3/fixes/fix_unicode.pyR s ( t __doc__t ret pgen2R t R R t compileR t BaseFixR ( ( ( s/ /usr/lib/python2.7/lib2to3/fixes/fix_unicode.pyt <module> s