AlkantarClanX12

Your IP : 18.221.192.248


Current Path : /opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/fix_apply.cpython-312.opt-1.pyc

�

�Q�f*	��j�dZddlmZddlmZddlmZddlmZmZm	Z	Gd�dej�Zy)	zIFixer for apply().

This converts apply(func, v, k) into (func)(*v, **k).�)�pytree)�token)�
fixer_base)�Call�Comma�parenthesizec��eZdZdZdZd�Zy)�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}|d}|d}|jd�}|r?|j|jjk(r|jdj
dvry|r@|j|jjk(r|jdj
dk(ry|j}|j�}|jtj|jfvrN|j|jk7s*|jdjtjk(rt|�}d|_|j�}d|_|�|j�}d|_tjtj d	�|g}|�H|j#t%�tjtjd�|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/python312/lib64/python3.12/lib2to3/fixes/fix_apply.py�	transformzFixApply.transforms����y�y���v����v����{�{�6�"����	�	�T�Y�Y�/�/�/��
�
�a� �&�&�+�5���T�Y�Y�$�)�)�"4�"4�4��]�]�1�%�+�+�t�3�������z�z�|���I�I�e�j�j�$�)�)�4�4�
�Y�Y�$�*�*�
$�
�]�]�2�
�
#�
#�u�'7�'7�
7���%�D�����z�z�|��������:�:�<�D��D�K��[�[����S�1�4�8�	������e�g�$�k�k�%�*:�*:�D�A�"�$�
%�$'�I�b�M� ��D�)�F�3�3�N)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNr)�r*r(r
r
s���M��G�%4r*r
N)�__doc__rr�pgen2rr�
fixer_utilrrr�BaseFixr
r0r*r(�<module>r5s-��9�
���2�2�64�z�!�!�64r*