관리-도구
편집 파일: fix_bytes.cpython-311.pyc
� �܋f� � �| � d Z ddlmZ ddlZddlmZ ddlmZ ej d� � Z G d� dej � � ZdS ) z�Optional fixer that changes all unprefixed string literals "..." to b"...". br'abcd' is a SyntaxError on Python 2 but valid on Python 3. ur'abcd' is a SyntaxError on Python 3 but valid on Python 2. � )�unicode_literalsN)�token)� fixer_basez[^bBuUrR]?[\'\"]c � � e Zd ZdZdZd� ZdS )�FixBytesT�STRINGc � � |j t j k rDt � |j � � r'|� � � }d|j z |_ |S d S d S )N�b)�typer r �_literal_re�match�value�clone)�self�node�results�news �l/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/libfuturize/fixes/fix_bytes.py� transformzFixBytes.transform s[ � ��9���$�$�� � ���,�,� ��j�j�l�l�� �3�9�,�� �� � %�$� � � N)�__name__� __module__�__qualname__� BM_compatible�PATTERNr � r r r r s- � � � � � ��M��G�� � � � r r )�__doc__� __future__r �re� lib2to3.pgen2r �lib2to3r �compiler �BaseFixr r r r �<module>r$ s� ��� � (� '� '� '� '� '� � � � � � � � � � � � � � � � ��b�j�,�-�-�� � � � � �z�!� � � � � r