Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
libfuturize
/
fixes
/
__pycache__
[ HOME ]
Exec
Submit
File Name : fix_unicode_keep_u.cpython-311.pyc
� � h � �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.8/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"