⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
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&