<!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>
B
    A[                 @   sZ   d Z ddlmZ ddlmZ ddlmZ ddlm	Z	m
Z
mZmZ dZG dd dejZd	S )
z?
Fixer for:
it.__next__() -> it.next().
next(it) -> it.next().
    )token)python_symbols)
fixer_base)NameCallfind_bindingAttrz;Calls to builtin next() possibly shadowed by global bindingc               @   s   e Zd ZdZdd ZdS )FixNextas  
    power< base=any+ trailer< '.' attr='__next__' > any* >
    |
    power< head='next' trailer< '(' arg=any ')' > any* >
    |
    classdef< 'class' base=any+ ':'
              suite< any*
                     funcdef< 'def'
                              attr='__next__'
                              parameters< '(' NAME ')' > any+ >
                     any* > >
    c             C   s   |st |d}|d}|d}|d}|rh| }|ttt||jdtd |  n|r|td|jd d S )Nbaseattrheadarg)prefixnext)	AssertionErrorgetclonereplacer   r   unicoder   remove)selfnoderesultsr
   r   r   Zarg_r    r   M/opt/alt/python37/lib/python3.7/site-packages/libpasteurize/fixes/fix_next.py	transform   s    




zFixNext.transformN)__name__
__module____qualname__ZPATTERNr   r   r   r   r   r	      s   r	   N)__doc__Zlib2to3.pgen2r   Zlib2to3.pygramr   ZsymsZlib2to3r   Zlib2to3.fixer_utilr   r   r   r   Zbind_warningZBaseFixr	   r   r   r   r   <module>   s   