AlkantarClanX12

Your IP : 3.15.239.50


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

�

c��f*	��h�dZddlmZddlmZddlmZddlmZmZm	Z	Gd�dej
��ZdS)	zIFixer for apply().

This converts apply(func, v, k) into (func)(*v, **k).�)�pytree)�token)�
fixer_base)�Call�Comma�parenthesizec��eZdZdZdZd�ZdS)�FixApplyTa.
    power< 'apply'
        trailer<
            '('
            arglist<
                (not argument<NAME '=' any>) func=any ','
                (not argument<NAME '=' any>) args=any [','
                (not argument<NAME '=' any>) kwds=any] [',']
            >
            ')'
        >
    >
    c��|j}|sJ�|d}|d}|�d��}|r+|j|jjkr|jdjdvrdS|r-|j|jjkr|jdjdkrdS|j}|���}|jtj	|j
fvr?|j|jks |jdjtjkrt|��}d|_|���}d|_|�|���}d|_tjtjd	��|g}|�N|�t%��tjtjd��|g��d
|d_t'|||���S)N�func�args�kwds�>�*�**r����r� )�prefix)�syms�get�type�argument�children�valuer�cloner�NAME�atom�power�
DOUBLESTARrr�Leaf�STAR�extendrr)	�self�node�resultsrrr
rr�	l_newargss	         �>/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_apply.py�	transformzFixApply.transforms����y�����w��v����v����{�{�6�"�"���	��	�T�Y�/�/�/��
�a� �&�+�5�5����	�T�Y�$�)�"4�4�4��]�1�%�+�t�3�3��F�����z�z�|�|���I�e�j�$�)�4�4�4�
�Y�$�*�
$�
$�
�]�2�
�
#�u�'7�
7�
7���%�%�D�����z�z�|�|��������:�:�<�<�D��D�K��[���S�1�1�4�8�	������e�g�g�$�k�%�*:�D�A�A�"�$�
%�
%�
%�$'�I�b�M� ��D�)�F�3�3�3�3�N)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNr)�r*r(r
r
s/�������M��G�%4�%4�%4�%4�%4r*r
N)�__doc__rr�pgen2rr�
fixer_utilrrr�BaseFixr
r0r*r(�<module>r5s���9�9�
������������������2�2�2�2�2�2�2�2�2�2�64�64�64�64�64�z�!�64�64�64�64�64r*