๐ File Manager By @h0rn3t_sp1d3r
๐ Change Directory:
Go
/
/
opt
/
alt
/
python37
/
lib64
/
python3.7
/
lib2to3
/
fixes
/
__pycache__
/
[ HOME ]
โฌ ๏ธ [ PARENT DIR ]
๐ค Upload
B ๏ฟฝ fH ๏ฟฝ @ 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&|๏ฟฝ | ๏ฟฝ | jtjkr&|๏ฟฝ| j๏ฟฝ q&W |r๏ฟฝ|d jtjkr๏ฟฝ|d= t|๏ฟฝdkr๏ฟฝ|j} | j |d _ | ๏ฟฝ|d ๏ฟฝ n||d d ๏ฟฝ<