Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /opt/alt/python38/lib64/python3.8/lib2to3/fixes/__pycache__/ |
U ��,aH � @ s2 d Z ddlmZ ddlmZ G dd� dej�ZdS )a, Fixer that cleans up a tuple argument to isinstance after the tokens in it were fixed. This is mainly used to remove double occurrences of tokens as a leftover of the long -> int / unicode -> str conversion. eg. isinstance(x, (int, long)) -> isinstance(x, (int, int)) -> isinstance(x, int) � )� fixer_base)�tokenc @ s e Zd ZdZdZdZdd� ZdS )� FixIsinstanceTz� power< 'isinstance' trailer< '(' arglist< any ',' atom< '(' args=testlist_gexp< any+ > ')' > > ')' > > � c C s� t � }|d }|j}g }t|�}|D ]p\}} | jtjkrr| j|krr|t|�d k r�||d jtjkr�t |� q$q$|� | � | jtjkr$|�| j� q$|r�|d jtjkr�|d= t|�dkr�|j} | j |d _ | �|d � n||d d �<