AlkantarClanX12

Your IP : 3.146.34.148


Current Path : /opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/fix_xreadlines.cpython-34.pyc

�
i f��@sCdZddlmZddlmZGdd�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@s(eZdZdZdZdd�ZdS)�
FixXreadlinesTz�
    power< call=any+ trailer< '.' 'xreadlines' > trailer< '(' ')' > >
    |
    power< any+ trailer< '.' no_call='xreadlines' > >
    cCsV|jd�}|r4|jtdd|j��n|jdd�|dD��dS)N�no_call�__iter__�prefixcSsg|]}|j��qS�)Zclone)�.0�xrr�A/opt/alt/python34/lib64/python3.4/lib2to3/fixes/fix_xreadlines.py�
<listcomp>s	z+FixXreadlines.transform.<locals>.<listcomp>�call)�get�replacerr)�selfZnodeZresultsrrrr�	transformszFixXreadlines.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNrrrrrrsrN)�__doc__�rZ
fixer_utilrZBaseFixrrrrr�<module>s