AlkantarClanX12
Current Path : /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/ |
Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_except.cpython-311.opt-2.pyc |
� c��f � �x � d dl mZ d dlmZ d dl mZ d dlmZmZmZm Z m Z mZ d� Z G d� dej � � ZdS ) � )�pytree)�token)� fixer_base)�Assign�Attr�Name�is_tuple�is_list�symsc # � K � t | � � D ]?\ }}|j t j k r%|j d j dk r|| |dz fV � �@d S )N� �exceptr )� enumerate�typer � except_clause�children�value)�nodes�i�ns �?/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_except.py�find_exceptsr sh � � � ��%� � � &� &���1��6�T�'�'�'��z�!�}�"�h�.�.��%��!��*�o�%�%�%��&� &� c � � e Zd ZdZdZd� ZdS )� 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 � | j }d� |d D � � }d� |d D � � }t |� � D �]�\ }}t |j � � dk �r�|j dd� \ }} } | � t dd� � � � � | j t j k �rAt | � � � d� � � }| � � � }d |_ | � |� � |� � � }|j } t | � � D ]!\ }}t |t j � � r n�"t! | � � st# | � � r,t% |t'