Your IP : 13.58.191.60


Current Path : /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_unicode.cpython-35.opt-2.pyc



���]��@sOddlmZddlmZddddiZGdd�dej�Zd	S)
�)�token)�
fixer_base�unichr�chr�unicode�strcs:eZdZdZdZ�fdd�Zdd�Z�S)�
FixUnicodeTzSTRING | 'unicode' | 'unichr'cs/tt|�j||�d|jk|_dS)N�unicode_literals)�superr�
start_treeZfuture_featuresr	)�selfZtree�filename)�	__class__��0/opt/alt/python35/lib64/python3.5/fix_unicode.pyrszFixUnicode.start_treecCs�|jtjkr2|j�}t|j|_|S|jtjkr�|j}|jr�|ddkr�d|kr�djdd�|j	d�D��}|ddkr�|dd�}||jkr�|S|j�}||_|SdS)	N�z'"�\z\\cSs.g|]$}|jdd�jdd��qS)z\uz\\uz\Uz\\U)�replace)�.0�vrrr�
<listcomp>!s	z(FixUnicode.transform.<locals>.<listcomp>ZuU�)
�typer�NAMEZclone�_mapping�value�STRINGr	�join�split)rZnode�results�new�valrrr�	transforms"	&		zFixUnicode.transform)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNrr"rr)rrrsrN)Zpgen2r�rrZBaseFixrrrrr�<module>s

?>