AlkantarClanX12
Current Path : /opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/ |
Current File : //opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/fix_except.cpython-312.opt-2.pyc |
� �Q�f � �z � d dl mZ d dlmZ d dl mZ d dlmZmZmZm Z m Z mZ d� Z G d� dej � Zy) � )�pytree)�token)� fixer_base)�Assign�Attr�Name�is_tuple�is_list�symsc # � K � t | � D ]L \ }}|j t j k( s�$|j d j dk( s�A|| |dz f�� �N y �w)N� �exceptr )� enumerate�typer � except_clause�children�value)�nodes�i�ns �?/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_except.py�find_exceptsr sS � �� ��%� ���1��6�6�T�'�'�'��z�z�!�}�"�"�h�.��%��!��*�o�%� !�s �/A�A�Ac � � e Zd ZdZdZd� Zy)� FixExceptTa1 try_stmt< 'try' ':' (simple_stmt | suite) cleanup=(except_clause ':' (simple_stmt | suite))+ tail=(['except' ':' (simple_stmt | suite)] ['else' ':' (simple_stmt | suite)] ['finally' ':' (simple_stmt | suite)]) > c � � | j }|d D �cg c] }|j � �� }}|d D �cg c] }|j � �� }}t |� D �]� \ }} t |j � dk( s� |j dd \ } }}|j t dd�� � |j t j k7 �r t | j � d�� } |j � }d|_ |j | � | j � } | j }t |� D ]! \ }}t |t j � s�! n t! |� st# |� r t% |t'