AlkantarClanX12

Your IP : 3.144.48.72


Current Path : /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_sys_exc.cpython-311.pyc

�

c��f
��`�dZddlmZddlmZmZmZmZmZm	Z	m
Z
Gd�dej��ZdS)z�Fixer for sys.exc_{type, value, traceback}

sys.exc_type -> sys.exc_info()[0]
sys.exc_value -> sys.exc_info()[1]
sys.exc_traceback -> sys.exc_info()[2]
�)�
fixer_base)�Attr�Call�Name�Number�	Subscript�Node�symsc�d�eZdZgd�ZdZdd�d�eD����zZd�ZdS)�	FixSysExc)�exc_type�	exc_value�
exc_tracebackTzN
              power< 'sys' trailer< dot='.' attribute=(%s) > >
              �|c#� K�|]	}d|zV��
dS)z'%s'N�)�.0�es  �@/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_sys_exc.py�	<genexpr>zFixSysExc.<genexpr>s&����:�:�A�V�a�Z�:�:�:�:�:�:�c���|dd}t|j�|j����}t	td��|j���}ttd��|��}|dj|djd_|�	t|����ttj
||j���S)N�	attribute��exc_info)�prefix�sys�dot�)rr�index�valuerrrr�children�appendrr	r
�power)�self�node�results�sys_attrr �call�attrs       r�	transformzFixSysExc.transforms����;�'��*���t�}�*�*�8�>�:�:�;�;���D��$�$�X�_�=�=�=���D��K�K��&�&��%,�U�^�%:��Q�����"����I�e�$�$�%�%�%��D�J��T�[�9�9�9�9rN)�__name__�
__module__�__qualname__r�
BM_compatible�join�PATTERNr+rrrrrs]������9�9�9�H��M���H�H�:�:��:�:�:�:�:�;�G�:�:�:�:�:rrN)
�__doc__�r�
fixer_utilrrrrrr	r
�BaseFixrrrr�<module>r6s�����������H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�H�:�:�:�:�:�
�"�:�:�:�:�:r