§ _©Ùªä.½ãó|—dZddlmZddlmZddlmZmZmZm Z m Z ddl m Z ddlmZGd„dej¦«Zd S) aFixer that changes map(F, ...) into list(map(F, ...)) unless there exists a 'from future_builtins import map' statement in the top-level namespace. As a special case, map(None, X) is changed into list(X). (This is necessary because the semantics are changed in this case -- the new map(None, X) is equivalent to [(x,) for x in X].) We avoid the transformation (except for the special case mentioned above) if the map() 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 map(F, X, Y, ...) to go on until the longest argument is exhausted, substituting None for missing values -- like zip(), it now stops as soon as the shortest argument is exhausted. é)Útoken)Ú fixer_base)ÚNameÚArgListÚCallÚListCompÚin_special_context)Úpython_symbols)ÚNodecó —eZdZdZdZdZd„ZdS)ÚFixMapTaL map_none=power< 'map' trailer< '(' arglist< 'None' ',' arg=any [','] > ')' > [extra_trailers=trailer*] > | map_lambda=power< 'map' trailer< '(' arglist< lambdef< 'lambda' (fp=NAME | vfpdef< '(' fp=NAME ')'> ) ':' xp=any > ',' it=any > ')' > [extra_trailers=trailer*] > | power< 'map' args=trailer< '(' [any] ')' > [extra_trailers=trailer*] > zfuture_builtins.mapcóN—| |¦«rdSg}d|vr2|dD])}| | ¦«¦«Œ*|jjt jkrQ| |d¦«| ¦«}d|_ttd¦«|g¦«}�nÞd|vr{t|d ¦«|d ¦«|d ¦«¦«}tt j |g|zd¬ ¦«}�n_d |vr"|d  ¦«}d|_nød |vrã|d }|jt jkr„|jd jt jkrd|jd jdjt"jkr9|jd jdjdkr| |d¦«dStt j td¦«| ¦«g¦«}d|_t)|¦«rdStt j td¦«t+|g¦«g|z¦«}d|_|j|_|S)NÚextra_trailerszYou should use a for loop hereÚÚlistÚ map_lambdaÚxpÚfpÚit)ÚprefixÚmap_noneÚargÚargsééÚNonezjcannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequenceÚmap)Ú should_skipÚappendÚcloneÚparentÚtypeÚsymsÚ simple_stmtÚwarningrrrrr ÚpowerÚtrailerÚchildrenÚarglistrÚNAMEÚvaluer r)ÚselfÚnodeÚresultsÚtrailersÚtÚnewrs úB/opt/alt/python-internal/lib64/python3.11/lib2to3/fixes/fix_map.pyÚ transformzFixMap.transform@sn€Ø × Ò ˜DÑ !Ô !ð Ø ˆFàˆØ ˜wÐ &Ð &ØÐ-Ô.ð +ð +�Ø—’ §¢¡ ¤ Ñ*Ô*Ð*Ð*à Œ;Ô �tÔ/Ò /Ð /Ø �LŠL˜Ð?Ñ @Ô @Ð @Ø—*’*‘,”,ˆC؈CŒJÝ•t˜F‘|”| c UÑ+Ô+ˆC‰CØ ˜WÐ $Ð $ݘ7 4œ=×.Ò.Ñ0Ô0Ø" 4œ=×.Ò.Ñ0Ô0Ø" 4œ=×.Ò.Ñ0Ô0ñ2ô2ˆCõ•t”z C 5¨8Ñ#3¸BÐ?Ñ?Ô?ˆC‰Cð˜WÐ$Ð$ؘe”n×*Ò*Ñ,Ô,�Ø�” � à˜WÐ$Ð$Ø" 6œ?�DØ”y¥D¤LÒ0Ð0Ø”} QÔ'Ô,µ´ Ò<Ð<Ø”} QÔ'Ô0°Ô3Ô8½E¼JÒFÐFØ”} QÔ'Ô0°Ô3Ô9¸VÒCÐCØŸ š  Tð,NñOôOðOð˜å�tœz­D°©K¬K¸¿º¹¼Ð+FÑGÔG�CØ!#�C”Jå% dÑ+Ô+ð Ø˜4å•t”z¥D¨¡L¤Lµ'¸3¸%±.´.Ð#AÀHÑ#LÑMÔMˆC؈CŒJà”[ˆŒ ؈ óN)Ú__name__Ú __module__Ú __qualname__Ú BM_compatibleÚPATTERNÚskip_onr3©r4r2r r s6€€€€€Ø€Mð€Gð:$€Gð.ð.ð.ð.ð.r4r N)Ú__doc__Úpgen2rrrÚ fixer_utilrrrrr Úpygramr r#Úpytreer ÚConditionalFixr r;r4r2úrBsÄðððð&ÐÐÐÐÐØÐÐÐÐÐØJÐJÐJÐJÐJÐJÐJÐJÐJÐJÐJÐJÐJÐJØ+Ð+Ð+Ð+Ð+Ð+ØÐÐÐÐÐðPðPðPðPðPˆZÔ &ñPôPðPðPðPr4