Hacked By AnonymousFox

Current Path : /opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/fix_sys_exc.cpython-312.pyc

�

�Q�f
��b�dZddlmZddlmZmZmZmZmZm	Z	m
Z
Gd�dej�Zy)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�T�eZdZgd�ZdZddjd�eD��zZd�Zy)�	FixSysExc)�exc_type�	exc_value�
exc_tracebackTzN
              power< 'sys' trailer< dot='.' attribute=(%s) > >
              �|c#�&K�|]	}d|z���y�w)z'%s'N�)�.0�es  �@/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_sys_exc.py�	<genexpr>zFixSysExc.<genexpr>s����:��A�V�a�Z��s�c��|dd}t|jj|j��}t	td�|j��}ttd�|�}|dj|djd_|jt|��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��&��%,�U�^�%:�%:��Q������"����I�e�$�%��D�J�J��T�[�[�9�9�N)�__name__�
__module__�__qualname__r�
BM_compatible�join�PATTERNr*rr+rrrs/��9�H��M���H�H�:��:�:�;�G�:r+rN)
�__doc__�r�
fixer_utilrrrrrr	r
�BaseFixrrr+r�<module>r6s*����H�H�H�:�
�"�"�:r+

Hacked By AnonymousFox1.0, Coded By AnonymousFox