f _@s2dZddlmZddlmZGdddejZdS)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@seZdZdZdZddZdS) FixXreadlinesTz power< call=any+ trailer< '.' 'xreadlines' > trailer< '(' ')' > > | power< any+ trailer< '.' no_call='xreadlines' > > cCs@|d}|r$|td|jdn|dd|dDdS)Nno_call__iter__)prefixcSsg|] }|qS)Zclone).0xrr5/usr/lib64/python3.10/lib2to3/fixes/fix_xreadlines.py z+FixXreadlines.transform..call)getreplacerr)selfZnoderesultsrrrr transforms zFixXreadlines.transformN)__name__ __module__ __qualname__Z BM_compatibleZPATTERNrrrrr r srN)__doc__rZ fixer_utilrZBaseFixrrrrr s