B ãxá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__).é)Ú 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_callÚ__iter__)ÚprefixcSsg|] }| ¡‘qS©)Zclone)Ú.0ÚxrrúA/opt/alt/python37/lib64/python3.7/lib2to3/fixes/fix_xreadlines.pyú sz+FixXreadlines.transform..Zcall)ÚgetÚreplacerr)ÚselfZnodeZresultsrrrr Ú transforms zFixXreadlines.transformN)Ú__name__Ú __module__Ú __qualname__Z BM_compatibleZPATTERNrrrrr r srN)Ú__doc__ÚrZ fixer_utilrZBaseFixrrrrr Ús