관리-도구
편집 파일: fix_unicode_keep_u.cpython-311.pyc
� �܋f � �R � d Z ddlmZ ddlmZ ddd�Z 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_base�chr�str)�unichr�unicodec � � e Zd ZdZdZd� ZdS )�FixUnicodeKeepUTz'unicode' | 'unichr'c � � |j t j k r-|� � � }t |j |_ |S d S )N)�typer �NAME�clone�_mapping�value)�self�node�results�news �u/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/libfuturize/fixes/fix_unicode_keep_u.py� transformzFixUnicodeKeepU.transform s9 � ��9�� �"�"��*�*�,�,�C� ���,�C�I��J� #�"� N)�__name__� __module__�__qualname__� BM_compatible�PATTERNr � r r r r s- � � � � � ��M�$�G�� � � � r r N)�__doc__� lib2to3.pgen2r �lib2to3r r �BaseFixr r r r �<module>r"