ok
Direktori : /proc/thread-self/root/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ |
Current File : //proc/thread-self/root/lib/python2.7/site-packages/pip/_vendor/urllib3/util/wait.pyo |
� ��abc @ sJ d d l m Z m Z m Z m Z d d � Z d d � Z d d � Z d S( i ( t HAS_SELECTt DefaultSelectort EVENT_READt EVENT_WRITEc C s� t s t d � � n t | t � sN t | d � r? | g } qN t | � } n t � �] } x | D] } | j | | � qa Wg | j | � D]! } | d | @r� | d j ^ q� SWd QXd S( s� 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. s! Platform does not have a selectort filenoi i N( R t ValueErrort isinstancet listt hasattrR t registert selectt fileobj( t sockst eventst timeoutt selectort sockt key( ( sA /usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/wait.pyt _wait_for_io_events s c C s t | t | � S( s� 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. ( R R ( R R ( ( sA /usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/wait.pyt wait_for_read s c C s t | t | � S( s� 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. ( R R ( R R ( ( sA /usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/wait.pyt wait_for_write$ s N( t selectorsR R R R t NoneR R R ( ( ( sA /usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/wait.pyt <module> s "