????

Your IP : 18.216.71.122


Current Path : /proc/self/root/lib/python3.6/site-packages/libfuturize/fixes/__pycache__/
Upload File :
Current File : //proc/self/root/lib/python3.6/site-packages/libfuturize/fixes/__pycache__/fix_bytes.cpython-36.pyc

3

�c��@sPdZddlmZddlZddlmZddlmZejd�Z	Gdd�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@seZdZdZdZdd�ZdS)�FixBytesT�STRINGcCs4|jtjkr0tj|j�r0|j�}d|j|_|SdS)N�b)�typerr�_literal_re�match�valueZclone)�selfZnode�results�new�r�/usr/lib/python3.6/fix_bytes.py�	transforms
zFixBytes.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNrrrrrrsr)�__doc__Z
__future__r�reZ
lib2to3.pgen2rZlib2to3r�compiler	ZBaseFixrrrrr�<module>s