|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/ |
�
��#!|�� �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