Server IP : 172.67.214.6 / Your IP : 216.73.216.73 Web Server : LiteSpeed System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : redwjova ( 1790) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/ |
Upload File : |
� ��h� � �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