JV] R d Z ddlmZ ddlmZ dddZ G d dej Zd S )
at Fixer 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_basechrstr)unichrunicodec e Zd ZdZdZd ZdS )FixUnicodeKeepUTz'unicode' | 'unichr'c |j t j k r-| }t |j |_ |S d S )N)typer NAMEclone_mappingvalue)selfnoderesultsnews v/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/libfuturize/fixes/fix_unicode_keep_u.py transformzFixUnicodeKeepU.transform s9 9
""**,,C ,CIJ #" N)__name__
__module____qualname__
BM_compatiblePATTERNr r r r
r
s- M$G r r
N)__doc__
lib2to3.pgen2r lib2to3r r BaseFixr
r r r