ó á¬_Zc@sZyddlZWnek r/ddlZnXddlmZdefd„ƒYZdS(iÿÿÿÿNi(t ConnectiontPoolingConnectioncBs2eZdZd„Zd„Zd„Zd„ZRS(sö Base connection class for connections that use libraries without thread safety and no capacity for connection pooling. To use this just implement a ``_make_connection`` method that constructs a new connection and returns it. cOs,tjƒ|_tt|ƒj||ŽdS(N(tqueuetQueuet_free_connectionstsuperRt__init__(tselftargstkwargs((s{/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-W9yz6j/elasticsearch/elasticsearch/connection/pooling.pyRscCs3y|jjƒSWntjk r.|jƒSXdS(N(Rt get_nowaitRtEmptyt_make_connection(R((s{/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-W9yz6j/elasticsearch/elasticsearch/connection/pooling.pyt_get_connectionscCs|jj|ƒdS(N(Rtput(Rtcon((s{/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-W9yz6j/elasticsearch/elasticsearch/connection/pooling.pyt_release_connectionscCsdS(s- Explicitly close connection N((R((s{/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-W9yz6j/elasticsearch/elasticsearch/connection/pooling.pytcloses(t__name__t __module__t__doc__RR RR(((s{/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-W9yz6j/elasticsearch/elasticsearch/connection/pooling.pyRs    (Rt ImportErrorRtbaseRR(((s{/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-W9yz6j/elasticsearch/elasticsearch/connection/pooling.pyts