Server IP : 192.158.238.246 / Your IP : 18.191.86.218 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/lib64/python3.6/lib2to3/fixes/__pycache__/ |
Upload File : |
3 \H � @ 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|�}xx|D ]p\}} | jtjkrt| j|krt|t|�d k r�||d jtjkr�t |� q&q&|j | � | jtjkr&|j| j� q&W |r�|d jtjkr�|d= t|�dkr�|j} | j |d _ | j|d � n||d d �<