<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
U
    if                     @   s2   d Z ddlmZ ddlmZ G d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   s@   | d}|r$|td|jd n|dd |d D  d S )Nno_call__iter__)prefixc                 S   s   g | ]}|  qS  )Zclone).0xr   r   A/opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_xreadlines.py
<listcomp>   s     z+FixXreadlines.transform.<locals>.<listcomp>Zcall)getreplacer   r   )selfZnodeZresultsr   r   r   r   	transform   s    
zFixXreadlines.transformN)__name__
__module____qualname__ZBM_compatibleZPATTERNr   r   r   r   r   r      s   r   N)__doc__ r   Z
fixer_utilr   ZBaseFixr   r   r   r   r   <module>   s   