ok

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_set_literal.cpython-311.pyc

�

�f���P�dZddlmZmZddlmZmZGd�dej��ZdS)z:
Optional fixer to transform set() calls to set literals.
�)�
fixer_base�pytree)�token�symsc� �eZdZdZdZdZd�ZdS)�
FixSetLiteralTajpower< 'set' trailer< '('
                     (atom=atom< '[' (items=listmaker< any ((',' any)* [',']) >
                                |
                                single=any) ']' >
                     |
                     atom< '(' items=testlist_gexp< any ((',' any)* [',']) > ')' >
                     )
                     ')' > >
              c���|�d��}|rJtjtj|���g��}|�|��|}n|d}tjtj	d��g}|�
d�|jD����|�tjtj
d����|jj|d_tjtj|��}|j|_t#|j��dkr8|jd}|���|j|jd_|S)	N�single�items�{c3�>K�|]}|���V��dS)N)�clone)�.0�ns  �D/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_set_literal.py�	<genexpr>z*FixSetLiteral.transform.<locals>.<genexpr>'s*����9�9�Q�q�w�w�y�y�9�9�9�9�9�9��}�����)�getr�Noder�	listmakerr�replace�Leafr�LBRACE�extend�children�append�RBRACE�next_sibling�prefix�dictsetmaker�len�remove)	�self�node�resultsr
�faker�literal�makerrs	         r�	transformzFixSetLiteral.transforms.�����X�&�&���	%��;�t�~������/?�@�@�D��N�N�4� � � ��E�E��G�$�E��;�u�|�S�1�1�2�����9�9�%�.�9�9�9�9�9�9����v�{�5�<��5�5�6�6�6�"�/�6�������D�-�w�7�7���{����u�~���!�#�#���q�!�A�
�H�H�J�J�J�()��E�N�2��%��rN)�__name__�
__module__�__qualname__�
BM_compatible�explicit�PATTERNr-�rrrrs4�������M��H��G�����rrN)	�__doc__�lib2to3rr�lib2to3.fixer_utilrr�BaseFixrr4rr�<module>r9sx����'�&�&�&�&�&�&�&�*�*�*�*�*�*�*�*�)�)�)�)�)�J�&�)�)�)�)�)r

Zerion Mini Shell 1.0