관리-도구
편집 파일: _callers.cpython-311.pyc
� �܋f� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm Z d dlmZ d dlm Z d d lmZ e rd dlmZ e eede e df edeef f Zdd�ZdS )z Call loop machinery � )�annotations)�cast)� Generator)�Mapping)�Sequence)�Tuple)� TYPE_CHECKING)�Union� )�_raise_wrapfail)�_Result)� HookCallError)�HookImplN� hook_name�str� hook_impls�Sequence[HookImpl]� caller_kwargs�Mapping[str, object]�firstresult�bool�return�object | list[object]c �: �� d}g }d}d} g } t |� � D �]v} �fd�| j D � � } n0# t $ r# | j D ]}|�vrt d|��� � ��Y nw xY w| j r�d} | j | � }t t dt t df |� � } t | � � |� | f� � ��# t $ r t | d� � Y ��w xY w| j rz | j | � }t t dt t f |� � }t |� � |� |� � ��0# t $ r t |d� � Y ��Mw xY w | j | � }|�|� |� � |r n��xn# t $ r}|}Y d}~nd}~ww xY w|r�|r |r|d nd}n|}t |� � D ]�} |�|� |� � n|� |� � |� � � n4# t $ r}|j }d}Y d}~�]d}~wt $ r}|}Y d}~�qd}~ww xY wt |d� � ��|�|� |j � � �|S |rt |r|d nd|� � }nt ||� � }t |� � D �]}t- |t. � � rC |d � |� � t |d d� � �K# t $ r Y �Ww xY w |j �|� |j � � n|� |j � � |� � � nX# t $ r$}|� |j � � Y d}~��d}~wt $ r}|� |� � Y d}~��d}~ww xY wt |d� � ��|� � � S # |r�|r |r|d nd}n|}t |� � D ]�} |�|� |� � n|� |� � |� � � n4# t $ r}|j }d}Y d}~�]d}~wt $ r}|}Y d}~�qd}~ww xY wt |d� � ��|�|� |j � � �|c cY S |rt |r|d nd|� � }nt ||� � }t |� � D �]}t- |t. � � rC |d � |� � t |d d� � �K# t $ r Y �Ww xY w |j �|� |j � � n|� |j � � |� � � nX# t $ r$}|� |j � � Y d}~��d}~wt $ r}|� |� � Y d}~��d}~ww xY wt |d� � ��|� � � c cY S xY w) z�Execute a call into multiple python functions/methods and return the result(s). ``caller_kwargs`` comes from _HookCaller.__call__(). TNc � �� g | ] }�| ��S � r )�.0�argnamer s ��`/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pluggy/_callers.py� <listcomp>z_multicall.<locals>.<listcomp>2 s �� �U�U�U�w�M�'�2�U�U�U� z hook call must provide argument Fz did not yieldr zhas second yield)�reversed�argnames�KeyErrorr �hookwrapper�functionr r r �object�next�append� StopIterationr �wrapper� BaseException�throw�send�close�value�with_traceback� __traceback__� isinstance�tuple� _exception�_result�force_result�force_exception� get_result)r r r r �__tracebackhide__�results� exception�only_new_style_wrappers� teardowns� hook_impl�argsr �res�wrapper_gen�function_gen�exc�result�teardown�si�e�outcomes ` r � _multicallrJ s$ �� � ���G��I�"��n(�$&� �' �%�j�1�1� $ "� $ "� ��U�U�U�U�)�BT�U�U�U�D�D��� � � �#,�#5� � ��"�-�7�7�"/� N�7� N� N�#� #� � 8�� ����� �(� "�.3�+�F� 1�i�0�$�7��&*�9�T�7�6�?�D�5P�+Q�SV�&W�&W���[�)�)�)�!�(�(�+��8�8�8�8��(� F� F� F�'��_�E�E�E�E�E�F�����&� "�G� 1�i�0�$�7��'+�I�d�F�F�6J�,K�S�'Q�'Q���\�*�*�*�!�(�(��6�6�6�6��(� G� G� G�'��o�F�F�F�F�F�G���� -�)�,�d�3�C������s�+�+�+�&� "�!�E����� � � ��I�I�I�I�I�I����� ���� #� B (�� !�'.�8�����D��� �� %�Y�/�/� >� >��� �,� ���y�1�1�1�1� � � �f�-�-�-� �N�N�$�$�$�$��$� � � ��X�F� $�I��H�H�H�H�����$� � � � !�I��H�H�H�H��������� ��*<�=�=�=�=��$��.�.�y�/F�G�G�G�� � � 6�:A�")�3�G�A�J�J�t�Y�;� ;��� "�'�9�5�5�� %�Y�/�/� B� B���h��.�.� B�� ���(�(��1�1�1�'����5G�H�H�H�H��(� � � �������!�"�-�9�$�N�N�7�+=�>�>�>�>�$�M�M�'�/�:�:�:� !���(�(�(�(��(� !� !� !��,�,�R�X�6�6�6� ���������(� !� !� !��/�/��2�2�2� ���������!���� $�H�.@�A�A�A�A��%�%�'�'�'��E #� B (�� !�'.�8�����D��� �� %�Y�/�/� >� >��� �,� ���y�1�1�1�1� � � �f�-�-�-� �N�N�$�$�$�$��$� � � ��X�F� $�I��H�H�H�H�����$� � � � !�I��H�H�H�H��������� ��*<�=�=�=�=��$��.�.�y�/F�G�G�G�� � � � � � � 6�:A�")�3�G�A�J�J�t�Y�;� ;��� "�'�9�5�5�� %�Y�/�/� B� B���h��.�.� B�� ���(�(��1�1�1�'����5G�H�H�H�H��(� � � �������!�"�-�9�$�N�N�7�+=�>�>�>�>�$�M�M�'�/�:�:�:� !���(�(�(�(��(� !� !� !��,�,�R�X�6�6�6� ���������(� !� !� !��/�/��2�2�2� ���������!���� $�H�.@�A�A�A�A��%�%�'�'�'�'�'�'�'�'�'�'s� �O �F �5�F �*A"�F �!A"�"F �/AC �F � C*�'F �)C*�* F �5AE �F � E+�'F �*E+�+*F �O � F,� F'�"O �'F,�,O �AH� I� H.�. I�;I�I�1L � L �L �AM"�" N7�,N� N7�N2�2N7� %X�AQ�X� Q9 � Q �X� Q9 �-Q4 �/X�4Q9 �94X�/AX�1T6�5X�6 U � X�U �X�AV�X� W- �"W �<X� W- �W( �#X�(W- �-+X) r r r r r r r r r r )�__doc__� __future__r �typingr r r r r r r r6 r r r �_hooksr r'