| Server IP : 172.67.131.151 / Your IP : 104.23.243.109 Web Server : Apache System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : simottodesign.com_2tntp341vs7 ( 10011) PHP Version : 8.3.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.8/lib2to3/fixes/__pycache__/ |
Upload File : |
U
�A�`
� @ sJ d Z ddlmZ ddlmZmZmZmZmZm Z m
Z
G dd� dej�ZdS )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 @ s: e Zd ZdddgZdZdd�dd� eD �� Zd d
� ZdS )� 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 �//usr/lib/python3.8/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 Zchildren�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)
�__doc__� r Z
fixer_utilr r r r r r r ZBaseFixr
r r r r �<module> s
$