⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.10
/
lib2to3
/
fixes
/
__pycache__
/
View File Name :
fix_filter.cpython-310.pyc
o bc @ sZ d Z ddlmZ ddlmZ ddlmZ ddlm Z m Z mZmZm Z G dd dejZdS ) a Fixer that changes filter(F, X) into list(filter(F, X)). We avoid the transformation if the filter() call is directly contained in iter(<>), list(<>), tuple(<>), sorted(<>), ...join(<>), or for V in <>:. NOTE: This is still not correct if the original code was depending on filter(F, X) to return a string if X is a string and a tuple if X is a tuple. That would require type inference, which we don't do. Let Python 2.6 figure it out. ) fixer_base)Node)python_symbols)NameArgListListCompin_special_contextparenthesizec @ s e Zd ZdZdZdZdd ZdS ) FixFilterTaV filter_lambda=power< 'filter' trailer< '(' arglist< lambdef< 'lambda' (fp=NAME | vfpdef< '(' fp=NAME ')'> ) ':' xp=any > ',' it=any > ')' > [extra_trailers=trailer*] > | power< 'filter' trailer< '(' arglist< none='None' ',' seq=any > ')' > [extra_trailers=trailer*] > | power< 'filter' args=trailer< '(' [any] ')' > [extra_trailers=trailer*] > zfuture_builtins.filterc C sL | |rd S g }d|v r|d D ] }|| qd|v rU|d }|jtjkr3d|_t|}t |d |d |d |}t tj|g| dd}nKd|v rvt td td |d td }t tj|g| dd}n*t |r|d S |d }t tjtd|gdd}t tjtd t|gg| }d|_|j|_|S )Nextra_trailers filter_lambdaxp fpit)prefixnone_fseqargsfilterlist)should_skipappendclonegettypesymstestr r r r powerr r r )selfnoderesultstrailerstr newr r&