![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3.10/lib2to3/fixes/__pycache__/ |
o ��bc � @ 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 @ 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 �0/usr/lib/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 )N� attribute� �exc_info)�prefix�sys�dot� )r r �index�valuer r r r �children�appendr r r �power)�self�node�results�sys_attrr �call�attrr r r � transform s zFixSysExc.transformN)�__name__� __module__�__qualname__r � BM_compatible�join�PATTERNr&