Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
wait.cpython-313.pyc29 linesDownload Raw Back to __pycache__
1�

2��jG����SSKJr SSKrSSKrSSKJr SS/rSS
SjjrSS
SjjrSSjr	SS
S	jjq3SSS4jjrSSSjjrg)�)�annotationsN)�partial�
wait_for_read�wait_for_writec�"�U(dU(d[S5e/n/nU(aURU5 U(aURU5 [[RXEU5nU"U5upxn	[	U=(d U=(d U	5$)N�2must specify at least one of read=True, write=True)�RuntimeError�appendr�select�bool)5�sock�read�write�timeout�rcheck�wcheck�fn�rready�wready�xreadys6          �WD:\code\apps\devtools\python\user_packages\Python313\site-packages\urllib3/util/wait.py�select_wait_for_socketr!st�����O�P�P�
�F�
�F���
�
�d����
�
�d��7������	7�B���[��F�F���*�&�*�F�+�+�c� ^�U(dU(d[S5eSnU(aU[R-nU(aU[R-n[R"5mTRX5 SU4Sjjn[
U"U55$)Nrrc�6>�UbUS-nTRU5$)Ni�)�poll)�t�poll_objs �r�do_poll�%poll_wait_for_socket.<locals>.do_pollJs ����=�
��I�A��}�}�Q��r)r�float | None�returnzlist[tuple[int, int]])r	r�POLLIN�POLLOUTr�registerr)r
rrr�maskrrs      @r�poll_wait_for_socketr'9sm������O�P�P��D����
�
�����������{�{�}�H����d�!� �8��� �!�!rc�~�[R"5nURS5 g![[4a gf=f)NrTF)rr�AttributeError�OSError)rs r�_have_working_pollr+Rs<����;�;�=���
�
�a����
�G�$����s�&)�<�<c�|�[5(a[qO[[S5(a[9q[XX#5$)Nr)r+r'�wait_for_socket�hasattrrr)r
rrrs    rr-r-_s1�����.��	���	"�	"�0���4�u�6�6rc��[USUS9$)z~Waits for reading to be available on a given socket.10Returns True if the socket is readable, or False if the timeout expired.11T)rr�r-�r
rs  rrrqs���4�d�G�<�<rc��[USUS9$)z~Waits for writing to be available on a given socket.12Returns True if the socket is readable, or False if the timeout expired.13T)rrr0r1s  rrrxs���4�t�W�=�=r)FFN)14r
�
socket.socketrrrrrr!r"r)r"r)N)r
r3rr!r"r)
�15__future__rr�socket�	functoolsr�__all__rr'r+r-rr�rr�<module>r9s���"�
�
���,�16-��8�� �	,�17�,�18�,��,��	,�1920�,�4�� �	"�21�"�22�"��"��	"�2324�"�225��� �	7�26�7�27�7��7��	7�2829�7�$=�>r
codekingpro/portable-devtools · Team Ai