⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.24
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib64
/
python3.9
/
lib2to3
/
fixes
/
__pycache__
/
View File Name :
fix_filter.cpython-39.pyc
a DOg @ 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 r6|d D ]}|| q"d|v r|d }|jtjkrfd|_t|}t |d |d |d |}t tj|g| dd}nd|v rt td td |d td }t tj|g| dd}nTt |rd S |d }t tjtd|gdd}t tjtd t|gg| }d|_|j|_|S )NZextra_trailersZ filter_lambdaxp fpit)prefixZnoneZ_fseqargsfilterlist)Zshould_skipappendZclonegettypesymstestr r r r Zpowerr r r )selfZnoderesultsZtrailerstr newr r 0/usr/lib64/python3.9/lib2to3/fixes/fix_filter.py transform: s> zFixFilter.transformN)__name__ __module____qualname__Z BM_compatibleZPATTERNZskip_onr r r r r r s r N)__doc__r r Zpytreer Zpygramr r Z fixer_utilr r r r r ZConditionalFixr r r r r
s