관리-도구
편집 파일: fix_itertools_imports.cpython-312.opt-2.pyc
� �Q�f& � �P � d dl mZ d dlmZmZmZ G d� dej � Zy)� )� fixer_base)� BlankLine�syms�tokenc �* � e Zd ZdZd e� z Zd� Zy)�FixItertoolsImportsTzT import_from< 'from' 'itertools' 'import' imports=any > c �� � |d }|j t j k( s|j s|g}n|j }|d d d� D ]� }|j t j k( r|j }|}n.|j t j k( r y |j d }|j }|dv rd |_ |j � ��|dv s��|j � |d dk( rdnd |_ �� |j d d xs |g}d } |D ]7 }| r.|j t j k( r|j � �3| d z } �9 |ra|d j t j k( rA|j � j � |r!|d j t j k( r�A|j s t |dd � r|j �|j } t � }| |_ |S y ) N�imports� r )�imap�izip�ifilter)�ifilterfalse�izip_longest� �f�filterfalse�zip_longestT����value)�typer �import_as_name�childrenr �NAMEr �STAR�remove�changed�COMMA�pop�getattr�parent�prefixr )�self�node�resultsr r �child�member� name_node�member_name�remove_comma�ps �J/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_itertools_imports.py� transformzFixItertoolsImports.transform s� � ��)�$���<�<�4�.�.�.�g�6F�6F��y�H��'�'�H��c��c�]�E��z�z�U�Z�Z�'�����!� ����u�z�z�)�� "�N�N�1�-� �#�/�/�K��9�9�"�������� @�@�����4?��N�c�4I�=�(5� ��! #�( �#�#�A�&�3�7�)�����E��� � �e�k�k� 9�������$�� � �8�B�<�,�,����;��L�L�N�!�!�#� �8�B�<�,�,����;� �!�!�W�W�g�t�%D��N�N�"����A��;�D��D�K��K� #� N)�__name__� __module__�__qualname__� BM_compatible�locals�PATTERNr- � r. r, r r s � ��M���H��G�+r. r N)�lib2to3r �lib2to3.fixer_utilr r r �BaseFixr r5 r. r, �<module>r9 s% �� G� � 5� 5�1�*�,�,� 1r.