AlkantarClanX12
Current Path : /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/ |
Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_raise.cpython-311.opt-2.pyc |
� c��fn � �n � d dl mZ d dlmZ d dl mZ d dlmZmZmZm Z m Z G d� dej � � ZdS )� )�pytree)�token)� fixer_base)�Name�Call�Attr�ArgList�is_tuplec � � e Zd ZdZdZd� ZdS )�FixRaiseTzB raise_stmt< 'raise' exc=any [',' val=any [',' tb=any]] > c �h � | j }|d � � � }|j t j k rd}| � ||� � d S t |� � rOt |� � r9|j d j d � � � }t |� � �9d|_ d|vr7t j |j t d� � |g� � }|j |_ |S |d � � � }t |� � rd� |j dd � D � � }n d |_ |g}d|v r�|d � � � } d | _ |} |j t j k s|j dk rt ||� � } t! | t d � � � � t# | g� � gz }t j |j t d� � g|z � � }|j |_ |S t j |j t d� � t ||� � g|j �� � S )N�excz+Python 3 does not support string exceptions� � � �val�raisec �6 � g | ]}|� � � ��S � )�clone)�.0�cs �>/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_raise.py� <listcomp>z&FixRaise.transform.<locals>.<listcomp>D s � �:�:�:�!�A�G�G�I�I�:�:�:� ���� �tb�None�with_traceback)�prefix)�symsr �typer �STRING�cannot_convertr �childrenr! r �Node� raise_stmtr �NAME�valuer r r �simple_stmt)�self�node�resultsr"