f ž _±c@s2dZddlmZddlmZGdd„dejƒZdS)zpFix "for x in f.xreadlines()" -> "for x in f". This fixer will also convert g(f.xreadlines) into g(f.__iter__).i)Ú fixer_base)ÚNamec@seZdZdZdZdd„ZdS)Ú FixXreadlinesTz‡ power< call=any+ trailer< '.' 'xreadlines' > trailer< '(' ')' > > | power< any+ trailer< '.' no_call='xreadlines' > > cCs@| d¡}|r$| td|jd¡n| dd„|dDƒ¡dS)NÚno_callZ__iter__)ÚprefixcSsg|] }| ¡‘qS©)Zclone)Z.0Zxrrú5/usr/lib64/python3.10/lib2to3/fixes/fix_xreadlines.pyZ sz+FixXreadlines.transform..Zcall)ZgetZreplacerr)ZselfZnodeZresultsrrrrÚ transforms zFixXreadlines.transformN)Z__name__Z __module__Z __qualname__Z BM_compatibleZPATTERNrrrrrr srN)Z__doc__ZrZ fixer_utilrZBaseFixrrrrrZs