관리-도구
편집 파일: fix_bytes.cpython-37.opt-1.pyc
B �A�[� � @ sP d Z ddlmZ ddlZddlmZ ddlmZ e�d�Z G dd� 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 @ s e Zd ZdZdZdd� ZdS )�FixBytesT�STRINGc C s4 |j tjkr0t�|j�r0|�� }d|j |_|S d S )N�b)�typer r �_literal_re�match�valueZclone)�selfZnodeZresults�new� r �L/opt/alt/python37/lib/python3.7/site-packages/libfuturize/fixes/fix_bytes.py� transform s zFixBytes.transformN)�__name__� __module__�__qualname__Z BM_compatibleZPATTERNr r r r r r s r )�__doc__Z __future__r �reZ lib2to3.pgen2r Zlib2to3r �compiler ZBaseFixr r r r r �<module> s