��Qc@sCdZddlmZddlmZdejfd��YZdS(spFix "for x in f.xreadlines()" -> "for x in f".
This fixer will also convert g(f.xreadlines) into g(f.__iter__).i(t
fixer_base(tNamet
FixXreadlinescBseZeZdZd�ZRS(s�
power< call=any+ trailer< '.' 'xreadlines' > trailer< '(' ')' > >
|
power< any+ trailer< '.' no_call='xreadlines' > >
cCsb|jd�}|r4|jtdd|j��n*|jg|dD]}|j�^qE�dS(Ntno_callu__iter__tprefixtcall(tgettreplaceRRtclone(tselftnodetresultsRtx((s2/sys/lib/python2.7/lib2to3/fixes/fix_xreadlines.pyt transforms(t__name__t
__module__tTruet
BM_compatibletPATTERNR
(((s2/sys/lib/python2.7/lib2to3/fixes/fix_xreadlines.pyRsN(t__doc__tRt
fixer_utilRtBaseFixR(((s2/sys/lib/python2.7/lib2to3/fixes/fix_xreadlines.pyt<module>s
|