ok

Mini Shell

Direktori : /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_xreadlines.cpython-35.pyc



K�Ma��@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/python35/lib64/python3.5/lib2to3/fixes/fix_xreadlines.py�
<listcomp>s	z+FixXreadlines.transform.<locals>.<listcomp>Zcall)�get�replacerr)�selfZnodeZresultsrrrr�	transformszFixXreadlines.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNrrrrrrsrN)�__doc__�rZ
fixer_utilrZBaseFixrrrrr�<module>s

Zerion Mini Shell 1.0