Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3.10/lib2to3/fixes/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3.10/lib2to3/fixes/__pycache__/fix_set_literal.cpython-310.pyc
o

��bc��@s:dZddlmZmZddlmZmZGdd�dej�ZdS)z:
Optional fixer to transform set() calls to set literals.
�)�
fixer_base�pytree)�token�symsc@s eZdZdZdZdZdd�ZdS)�
FixSetLiteralTajpower< 'set' trailer< '('
                     (atom=atom< '[' (items=listmaker< any ((',' any)* [',']) >
                                |
                                single=any) ']' >
                     |
                     atom< '(' items=testlist_gexp< any ((',' any)* [',']) > ')' >
                     )
                     ')' > >
              c	Cs�|�d�}|rt�tj|��g�}|�|�|}n|d}t�tj	d�g}|�
dd�|jD��|�t�tj
d��|jj|d_t�tj|�}|j|_t|j�dkrc|jd	}|��|j|jd_|S)
N�single�items�{css�|]}|��VqdS)N)�clone)�.0�n�r
�4/usr/lib/python3.10/lib2to3/fixes/fix_set_literal.py�	<genexpr>'s�z*FixSetLiteral.transform.<locals>.<genexpr>�}�����)�getr�Noder�	listmakerr
�replace�Leafr�LBRACE�extend�children�append�RBRACE�next_sibling�prefix�dictsetmaker�len�remove)	�self�node�resultsr�faker�literal�makerrr
r
r�	transforms"


zFixSetLiteral.transformN)�__name__�
__module__�__qualname__�
BM_compatible�explicit�PATTERNr)r
r
r
rrs

rN)	�__doc__�lib2to3rr�lib2to3.fixer_utilrr�BaseFixrr
r
r
r�<module>s

Spamworldpro Mini