python (3.12.0)
̑e J d Z ddlmZ ddlmZ G d dej
Zy)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 e Zd ZdZdZd Zy)
FixXreadlinesTz
power< call=any+ trailer< '.' 'xreadlines' > trailer< '(' ')' > >
|
power< any+ trailer< '.' no_call='xreadlines' > >
c |j d }|r'|j t d|j y |j |d D cg c] }|j c} y c c}w )Nno_call__iter__)prefixcall)getreplacer r
clone)selfnoderesultsr xs P/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/lib2to3/fixes/fix_xreadlines.py transformzFixXreadlines.transform sN ++i(OODGNNCDLLWV_=!'')=>=s
A,N)__name__
__module____qualname__
BM_compatiblePATTERNr r r r s MG?r r N)__doc__ r
fixer_utilr BaseFixr r r r <module>r s% D ?J&&