CasperSecurity

Current Path : /lib/python3.10/lib2to3/fixes/__pycache__/
Upload File :
Current File : //lib/python3.10/lib2to3/fixes/__pycache__/fix_unicode.cpython-310.pyc

o

��bc��@s<dZddlmZddlmZddd�ZGdd�dej�Zd	S)
z�Fixer for unicode.

* Changes unicode to str and unichr to chr.

* If "...\u..." is not unicode literal change it into "...\\u...".

* Change u"..." into "...".

�)�token)�
fixer_base�chr�str)�unichr�unicodecs,eZdZdZdZ�fdd�Zdd�Z�ZS)�
FixUnicodeTzSTRING | 'unicode' | 'unichr'cs"tt|��||�d|jv|_dS)N�unicode_literals)�superr�
start_tree�future_featuresr	)�self�tree�filename��	__class__��0/usr/lib/python3.10/lib2to3/fixes/fix_unicode.pyrszFixUnicode.start_treecCs�|jtjkr|��}t|j|_|S|jtjkrQ|j}|js5|ddvr5d|vr5d�dd�|�	d�D��}|ddvrA|dd�}||jkrH|S|��}||_|SdS)	N�z'"�\z\\cSs g|]}|�dd��dd��qS)z\uz\\uz\Uz\\U)�replace)�.0�vrrr�
<listcomp> s��z(FixUnicode.transform.<locals>.<listcomp>�uU�)
�typer�NAME�clone�_mapping�value�STRINGr	�join�split)r
�node�results�new�valrrr�	transforms$
�
�zFixUnicode.transform)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNrr(�
__classcell__rrrrrs
rN)�__doc__�pgen2r�rr�BaseFixrrrrr�<module>s



Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY