python (3.12.0)

(root)/
lib/
python3.12/
lib2to3/
fixes/
__pycache__/
fix_map.cpython-312.opt-1.pyc

̑e8~dZddlmZddlmZddlmZmZmZm	Z	m
Z
ddlmZ
ddlmZGddej Zy	)
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)NameArgListCallListCompin_special_context)python_symbols)NodeceZdZdZdZdZdZy)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
|j|ryg}d|vr)|dD]!}|j|j#|jjt
jk(rA|j|d|j}d|_ttd|g}nd|vrbt|dj|dj|dj}tt
j|g|zd	}nbd
|vr|dj}d|_n	d|vr|d}|jt
jk(r|jd
jt
j k(rs|jd
jdjt"j$k(r<|jd
jdj&dk(r|j|dytt
jtd|jg}d|_t)|rytt
jtdt+gg|z}d|_|j|_|S)Nextra_trailerszYou should use a for loop herelist
map_lambdaxpfpit)prefixmap_noneargargsNonezjcannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequencemap)should_skipappendcloneparenttypesymssimple_stmtwarningrrrrrpowertrailerchildrenarglistrNAMEvaluer	r)selfnoderesultstrailerstnewrs       I/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/lib2to3/fixes/fix_map.py	transformzFixMap.transform@sD!w&-.
+	*
+;;t///LL?@**,CCJtF|cU+C
W
$74=..0"4=..0"4=..02CtzzC58#3B?CW$en**,
W$"6?DyyDLL0}}Q',,<}}Q'00388EJJF}}Q'00399VCT,NOtzzDK+FGC!#CJ%d+tzzDL'3%.#AH#LMCCJ[[

N)__name__
__module____qualname__
BM_compatiblePATTERNskip_onr3r4r2r
r
sMG:$G.r4r
N)__doc__pgen2rrr
fixer_utilrrrrr	pygramr
r#pytreerConditionalFixr
r;r4r2<module>rBs2&JJ+PZ
&
&Pr4