Viewing File: /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_map.cpython-35.opt-2.pyc



й¼]òã@soddlmZddlmZddlmZmZmZmZddl	m
ZGdd„dejƒZ
dS)é)Útoken)Ú
fixer_base)ÚNameÚCallÚListCompÚin_special_context)Úpython_symbolsc@s.eZdZdZdZdZdd„ZdS)ÚFixMapTaé
    map_none=power<
        'map'
        trailer< '(' arglist< 'None' ',' arg=any [','] > ')' >
    >
    |
    map_lambda=power<
        'map'
        trailer<
            '('
            arglist<
                lambdef< 'lambda'
                         (fp=NAME | vfpdef< '(' fp=NAME ')'> ) ':' xp=any
                >
                ','
                it=any
            >
            ')'
        >
    >
    |
    power<
        'map' trailer< '(' [arglist=any] ')' >
    >
    zfuture_builtins.mapcCs~|j|ƒrdS|jjtjkrh|j|dƒ|jƒ}d|_tt	dƒ|gƒ}nd|kr§t
|djƒ|djƒ|djƒƒ}nÇd|krÆ|d	jƒ}n‡d
|kr1|d
}|jtjkr1|jdjt
jkr1|jdjdkr1|j|d
ƒdSt|ƒrAdS|jƒ}d|_tt	dƒ|gƒ}|j|_|S)NzYou should use a for loop hereÚÚlistZ
map_lambdaZxpÚfpÚitZmap_noneÚargÚarglistéÚNonezjcannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence)Zshould_skipÚparentÚtypeÚsymsZsimple_stmtÚwarningZcloneÚprefixrrrrZchildrenrÚNAMEÚvaluer)ÚselfZnodeÚresultsÚnewÚargs©rú,/opt/alt/python35/lib64/python3.5/fix_map.pyÚ	transform;s6	

	zFixMap.transformN)Ú__name__Ú
__module__Ú__qualname__Z
BM_compatibleZPATTERNZskip_onrrrrrr	sr	N)Zpgen2rr
rZ
fixer_utilrrrrZpygramrrZConditionalFixr	rrrrÚ<module>s"
Back to Directory File Manager