관리-도구
편집 파일: wait.cpython-311.pyc
� �Dg � �� � d dl Z d dlZd dlZd dlmZ d dlmZ n# e$ r d dlmZ Y nw xY wg d�Z G d� de � � Z ej dk rd � Znd � Zdd�Z dd �Zd� Zd� Zd� add�Zdd�ZdS )� N)�partial)� monotonic)�time)�NoWayToWaitForSocketError� wait_for_read�wait_for_writec � � e Zd ZdS )r N)�__name__� __module__�__qualname__� � �}/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/urllib3/util/wait.pyr r s � � � � � ��Dr r )� � c � � | |� � S �Nr )�fn�timeouts r �_retry_on_intrr * s � ��r�'�{�{�r c �< � |�t d� � }nt � � |z } | |� � S # t t j f$ rT}|j d t j k r� |t � � z }|dk rd}|t d� � k rd }Y d }~�rd }~ww xY w)N�infTr )�floatr �OSError�select�error�args�errno�EINTR)r r �deadline�es r r r / s� � ��?��U�|�|�H�H� �{�{�W�,�H� � ��r�'�{�{�"���V�\�*� � � ��6�!�9���+�+��&����4�G���{�{�"#���%��,�,�.�.�"&���H�H�H�H����� ���s � 1 �B�A B�BFc � � |s|st d� � �g }g }|r|� | � � |r|� | � � t t j |||� � }t ||� � \ }}} t |p|p| � � S )N�2must specify at least one of read=True, write=True)�RuntimeError�appendr r r �bool) �sock�read�writer �rcheck�wcheckr �rready�wready�xreadys r �select_wait_for_socketr/ F s� � �� Q�� Q��O�P�P�P� �F� �F�� �� � �d����� �� � �d���� ������ 7� 7�B�+�B��8�8��F�F�F���*�&�*�F�+�+�+r c � �� |s|st d� � �d}|r|t j z }|r|t j z }t j � � ��� | |� � �fd�}t t ||� � � � S )Nr# r c �<