AlkantarClanX12
Current Path : /opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/ |
Current File : //opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/fix_raise.cpython-312.opt-2.pyc |
� �Q�fn � �p � d dl mZ d dlmZ d dl mZ d dlmZmZmZm Z m Z G d� dej � Zy)� )�pytree)�token)� fixer_base)�Name�Call�Attr�ArgList�is_tuplec � � e Zd ZdZdZd� Zy)�FixRaiseTzB raise_stmt< 'raise' exc=any [',' val=any [',' tb=any]] > c �v � | j }|d j � }|j t j k( rd}| j ||� y t |� rHt |� r6|j d j d j � }t |� r�6d|_ d|vr>t j |j t d� |g� }|j |_ |S |d j � }t |� r+|j dd D �cg c] }|j � �� } }n d |_ |g} d |v r�|d j � } d | _ |}|j t j k7 s|j dk7 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 c c}w )N�excz+Python 3 does not support string exceptions� � � �val�raise���� �tb�None�with_traceback)�prefix)�syms�clone�typer �STRING�cannot_convertr �childrenr r �Node� raise_stmtr �NAME�valuer r r �simple_stmt) �self�node�resultsr r �msg�newr �c�argsr �e�with_tbs �>/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_raise.py� transformzFixRaise.transform&