관리-도구
편집 파일: fix_next.cpython-311.pyc
� �܋f� � �p � d Z ddlmZ ddlmZ ddlmZ ddlm Z m Z mZmZ dZ G d� dej � � Zd 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 � � e Zd ZdZd� ZdS )�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 � � |sJ �|� d� � }|� d� � }|� d� � }|� d� � }|r{|� � � }|� t t t |� � |j �� � t d� � � � � � |� � � d S |r+|� t d|j �� � � � d S d S )N�base�attr�head�arg)�prefix�next)�get�clone�replacer r �unicoder �remove)�self�node�resultsr r r �arg_r s �m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/libpasteurize/fixes/fix_next.py� transformzFixNext.transform s� � ����w��{�{�7�#�#���{�{�7�#�#���{�{�7�#�#���{�{�6�"�"��� <��*�*�,�,�C��L�L��d�7�3�<�<�t�{�C�C�C�"�7�m�m�-� -� .� .� .��K�K�M�M�M�M�M� � <��L�L��g�d�k�:�:�:�;�;�;�;�;� <� <� N)�__name__� __module__�__qualname__�PATTERNr � r r r r s* � � � � � ��G� <� <� <� <� <r r N)�__doc__� lib2to3.pgen2r �lib2to3.pygramr �syms�lib2to3r �lib2to3.fixer_utilr r r r �bind_warning�BaseFixr r# r r �<module>r, s� ��� � � � � � � � 1� 1� 1� 1� 1� 1� � � � � � � =� =� =� =� =� =� =� =� =� =� =� =�M��<� <� <� <� <�j� � <� <� <� <� <r