Your IP : 3.133.155.253


Current Path : /opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/fix_xreadlines.cpython-312.pyc

�

�Q�f���J�dZddlmZddlmZGd�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��eZdZdZdZd�Zy)�
FixXreadlinesTz�
    power< call=any+ trailer< '.' 'xreadlines' > trailer< '(' ')' > >
    |
    power< any+ trailer< '.' no_call='xreadlines' > >
    c���|jd�}|r'|jtd|j���y|j|dD�cgc]}|j	���c}�ycc}w)N�no_call�__iter__)�prefix�call)�get�replacerr
�clone)�self�node�resultsr�xs     �C/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_xreadlines.py�	transformzFixXreadlines.transformsR���+�+�i�(����O�O�D��G�N�N�C�D��L�L�W�V�_�=�_��!�'�'�)�_�=�>��=s�
A,N)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNr��rrrs���M��G�?rrN)�__doc__�r�
fixer_utilr�BaseFixrrrr�<module>r s%��D���?�J�&�&�?r

?>