관리-도구
편집 파일: fix_raise.cpython-311.pyc
� �܋fK � �X � d Z ddlmZ ddlmZmZmZmZmZ G d� dej � � Z dS )z;Fixer for 'raise E(V).with_traceback(T)' -> 'raise E, V, T'� )� fixer_base)�Comma�Node�Leaf�token�symsc � � e Zd ZdZd� ZdS )�FixRaisez� raise_stmt< 'raise' (power< name=any [trailer< '(' val=any* ')' >] [trailer< '.' 'with_traceback' > trailer< '(' trc=any ')' >] > | any) ['from' chain=any] >c �� � |� d� � |� d� � |� d� � }}}|� d� � }|�C| � |d� � |j � � � |� � � |��|r|d nt t j d� � }dx|_ |_ t t j d � � |� � � t � � |� � � t � � |� � � g}t t j |� � }|� |� � d S d S ) N�name�val�trc�chainz8explicit exception chaining is not supported in Python 2r �None� �raise)�get�warning�prev_sibling�remover r �NAME�prefix�cloner r r � raise_stmt�replace) �self�node�resultsr r r r �kidsr s �n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/libpasteurize/fixes/fix_raise.py� transformzFixRaise.transform s$ � �!�+�+�g�.�.����F�0C�0C�W�[�[�QW�EX�EX�3�c�����H�%�%�����L�L��Z�[�[�[���%�%�'�'�'��L�L�N�N�N��?��>�#�a�&�&�T�%�*�g�%>�%>�C�&*�*�C�J������X�.�.�� � ���e�g�g��I�I�K�K����#�)�)�+�+�7�D��d�o�t�4�4�J��L�L��$�$�$�$�$� �?� N)�__name__� __module__�__qualname__�PATTERNr! � r"