HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //usr/lib/python3.12/lib2to3/fixes/__pycache__/fix_xreadlines.cpython-312.pyc
�

�3f���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     �3/usr/lib/python3.12/lib2to3/fixes/fix_xreadlines.py�	transformzFixXreadlines.transformsN���+�+�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