Your IP : 18.191.195.180
o
6��f
� @ sH d dl mZ d dlmZmZmZmZmZmZm Z G dd� dej
�ZdS )� )�
fixer_base)�Attr�Call�Name�Number� Subscript�Node�symsc @ s8 e Zd Zg d�ZdZdd�dd� eD �� Zdd� Zd S )
� FixSysExc)�exc_type� exc_value�
exc_tracebackTzN
power< 'sys' trailer< dot='.' attribute=(%s) > >
�|c c s � | ]}d | V qdS )z'%s'N� )�.0�er r �@/opt/alt/python310/lib64/python3.10/lib2to3/fixes/fix_sys_exc.py� <genexpr> s � zFixSysExc.<genexpr>c C st |d d }t | j�|j��}ttd�|jd�}ttd�|�}|d j|d jd _|� t
|�� ttj
||jd�S )NZ attribute� �exc_info)�prefix�sys�dot� )r r �index�valuer r r r �children�appendr r r Zpower)�selfZnodeZresultsZsys_attrr Zcall�attrr r r � transform s zFixSysExc.transformN)�__name__�
__module__�__qualname__r Z
BM_compatible�joinZPATTERNr r r r r r
s �r
N)� r Z
fixer_utilr r r r r r r ZBaseFixr
r r r r �<module> s
$