관리-도구
편집 파일: fix_xreadlines.cpython-312.pyc
� �Q�f� � �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 )N�no_call�__iter__)�prefix�call)�get�replacer r �clone)�self�node�resultsr �xs �C/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_xreadlines.py� transformzFixXreadlines.transform sR � ��+�+�i�(����O�O�D��G�N�N�C�D��L�L�W�V�_�=�_��!�'�'�)�_�=�>��=s � A,N)�__name__� __module__�__qualname__� BM_compatible�PATTERNr � � r r r s � ��M��G�?r r N)�__doc__� r � fixer_utilr �BaseFixr r r r �<module>r s% ��D� � �?�J�&�&� ?r