Server : LiteSpeed
System : Linux server64.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : nimalaab ( 3358)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /lib/python3.6/site-packages/pip/_vendor/urllib3/util/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //lib/python3.6/site-packages/pip/_vendor/urllib3/util/__pycache__/wait.cpython-36.pyc
3

�Pf��@s:ddlmZmZmZmZd	dd�Zd
dd�Zddd�ZdS)�)�
HAS_SELECT�DefaultSelector�
EVENT_READ�EVENT_WRITENcsttstd��t|t�s0t|d�r(|g}nt|�}t��4}x|D]}|j|��q>W�fdd�|j|�D�SQRXdS)z� Waits for IO events to be available from a list of sockets
    or optionally a single socket if passed in. Returns a list of
    sockets that can be interacted with immediately. z!Platform does not have a selector�filenocs"g|]}|d�@r|dj�qS)r�)Zfileobj)�.0�key)�events��/usr/lib/python3.6/wait.py�
<listcomp>sz'_wait_for_io_events.<locals>.<listcomp>N)r�
ValueError�
isinstance�list�hasattrr�registerZselect)�socksr
�timeoutZselectorZsockr)r
r�_wait_for_io_events	s



rcCst|t|�S)z� Waits for reading to be available from a list of sockets
    or optionally a single socket if passed in. Returns a list of
    sockets that can be read from immediately. )rr)rrrrr�
wait_for_readsrcCst|t|�S)z� Waits for writing to be available from a list of sockets
    or optionally a single socket if passed in. Returns a list of
    sockets that can be written to immediately. )rr)rrrrr�wait_for_write$sr)N)N)N)Z	selectorsrrrrrrrrrrr�<module>s



F1le Man4ger