
    ;e                     H    d Z ddlmZ ddlmZ  G d dej                  ZdS )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 Zd ZdZdZd ZdS )FixXreadlinesTz
    power< call=any+ trailer< '.' 'xreadlines' > trailer< '(' ')' > >
    |
    power< any+ trailer< '.' no_call='xreadlines' > >
    c                     |                     d          }|r+|                    t          d|j                             d S |                    d |d         D                        d S )Nno_call__iter__)prefixc                 6    g | ]}|                                 S  )clone).0xs     3/usr/lib/python3.11/lib2to3/fixes/fix_xreadlines.py
<listcomp>z+FixXreadlines.transform.<locals>.<listcomp>   s     ===!''))===    call)getreplacer   r
   )selfnoderesultsr   s       r   	transformzFixXreadlines.transform   sm    ++i(( 	?OODGNCCCDDDDDLL==WV_===>>>>>r   N)__name__
__module____qualname__BM_compatiblePATTERNr   r   r   r   r   r      s/        MG? ? ? ? ?r   r   N)__doc__ r   
fixer_utilr   BaseFixr   r   r   r   <module>r#      sn   D D            ? ? ? ? ?J& ? ? ? ? ?r   