ok
Direktori : /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/urllib3/util/ |
Current File : //opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/urllib3/util/wait.pyc |
� Bu�_c @ s d d l Z d d l m Z d d l Z d d l Z y d d l m Z Wn! e k rk d d l m Z n Xd d d g Z d e f d � � YZ e j d k r� d � Z n d � Z e e d d � Z e e d d � Z d � Z d � Z d � a d d � Z d d � Z d S( i����N( t partial( t monotonic( t timet NoWayToWaitForSocketErrort wait_for_readt wait_for_writec B s e Z RS( ( t __name__t __module__( ( ( sN /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/urllib3/util/wait.pyR s i i c C s | | � S( N( ( t fnt timeout( ( sN /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/urllib3/util/wait.pyt _retry_on_intr* s c C s� | d k r t d � } n t � | } x� t r� y | | � SWq+ t t j f k r� } | j d t j k rv � q� | t � } | d k r� d } n | t d � k r+ d } q+ q+ q+ Xq+ Wd S( Nt infi ( t Nonet floatR t Truet OSErrort selectt errort argst errnot EINTR( R R t deadlinet e( ( sN /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/urllib3/util/wait.pyR 0 s c C s� | r | r t d � � n g } g } | r? | j | � n | rU | j | � n t t j | | | � } t | | � \ } } } t | p� | p� | � S( Ns2 must specify at least one of read=True, write=True( t RuntimeErrort appendR R R t bool( t sockt readt writeR t rcheckt wcheckR t rreadyt wreadyt xready( ( sN /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/urllib3/util/wait.pyt select_wait_for_socketG s c s� | r | r t d � � n d } | r9 | t j O} n | rO | t j O} n t j � � � j | | � � f d � } t t | | � � S( Ns2 must specify at least one of read=True, write=Truei c s&