AlkantarClanX12

Your IP : 18.216.53.7


Current Path : /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_xreadlines.cpython-311.pyc

�

c��f���H�dZddlmZddlmZGd�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��eZdZdZdZd�ZdS)�
FixXreadlinesTz�
    power< call=any+ trailer< '.' 'xreadlines' > trailer< '(' ')' > >
    |
    power< any+ trailer< '.' no_call='xreadlines' > >
    c���|�d��}|r+|�td|j�����dS|�d�|dD����dS)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�replacerr
)�self�node�resultsrs    r�	transformzFixXreadlines.transformsm���+�+�i�(�(���	?��O�O�D��G�N�C�C�C�D�D�D�D�D��L�L�=�=�W�V�_�=�=�=�>�>�>�>�>rN)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNrrrrrrs/�������M��G�?�?�?�?�?rrN)�__doc__�r�
fixer_utilr�BaseFixrrrr�<module>r#sn��D�D�������������?�?�?�?�?�J�&�?�?�?�?�?r