관리-도구
편집 파일: fix_xreadlines.cpython-311.opt-1.pyc
� c��f� � �H � d Z ddlmZ ddlmZ G d� 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 � � e Zd ZdZdZd� ZdS )� 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 �C/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_xreadlines.py� <listcomp>z+FixXreadlines.transform.<locals>.<listcomp> s � �=�=�=��!�'�'�)�)�=�=�=� �call)�get�replacer r )�self�node�resultsr s r � transformzFixXreadlines.transform sm � ��+�+�i�(�(��� ?��O�O�D��G�N�C�C�C�D�D�D�D�D��L�L�=�=�W�V�_�=�=�=�>�>�>�>�>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