Viewing File: /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_input.cpython-35.opt-1.pyc
¯ÕYfÄ ã @ sh d Z d d l m Z d d l m Z m Z d d l m Z e j d ƒ Z Gd d „ d e j ƒ Z
d S) z4Fixer that changes input(...) into eval(input(...)).é )Ú
fixer_base)ÚCallÚName)Úpatcompz&power< 'eval' trailer< '(' any ')' > >c @ s( e Z d Z d Z d Z d d „ Z d S)ÚFixInputTzL
power< 'input' args=trailer< '(' [any] ')' > >
c C sM t j | j j ƒ r d S| j ƒ } d | _ t t d ƒ | g d | j ƒS)NÚ ÚevalÚprefix)ÚcontextÚmatchÚparentZcloner r r )ÚselfZnodeZresultsÚnew© r ú</opt/alt/python35/lib64/python3.5/lib2to3/fixes/fix_input.pyÚ transform s
zFixInput.transformN)Ú__name__Ú
__module__Ú__qualname__Z
BM_compatibleZPATTERNr r r r r r
s r N)Ú__doc__r r Z
fixer_utilr r r Zcompile_patternr
ZBaseFixr r r r r Ú<module> s
Back to Directory
File Manager