Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/lib2to3/fixes/fix_unicode.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@srdZddlZddlmZddlmZidd6dd	6Zejd
�Zdej	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.pyt<module>s

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].