Sindbad~EG File Manager
3
�uGh� � @ sP d Z ddlmZ ddlZddlmZ ddlmZ ejd�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 tjkr0tj|j�r0|j� }d|j |_|S d S )N�b)�typer r �_literal_re�match�value�clone)�self�node�results�new� r �B/root/tmp/pip-build-gzoz1_uw/future/libfuturize/fixes/fix_bytes.py� transform s
zFixBytes.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNr r r r r r s r )�__doc__�
__future__r �reZ
lib2to3.pgen2r Zlib2to3r �compiler ZBaseFixr r r r r �<module> s
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists