/usr/lib/python2.6/site-packages/urllib3/util
NameSizeModeActions
connection.py33410644editdlrm
connection.pyc30400644editdlrm
request.py20890644editdlrm
request.pyc21500644editdlrm
response.py21270644editdlrm
response.pyc21280644editdlrm
retry.py99240644editdlrm
retry.pyc97510644editdlrm
ssl_.py103750644editdlrm
ssl_.pyc89140644editdlrm
timeout.py95440644editdlrm
timeout.pyc95390644editdlrm
url.py58360644editdlrm
url.pyc59100644editdlrm
__init__.py4860644editdlrm
__init__.pyc7840644editdlrm
Edit: /usr/lib/python2.6/site-packages/urllib3/util/connection.pyc (3040B)
Ñò ;vVc @sddkZyddklZlZWnIej o=eZyddklZWqrej o eZqrXnXd„Zeiddd„Z d„Z dS(iÿÿÿÿN(tpolltPOLLIN(tselectcCsÚt|dtƒ}|tjotS|djotStpHtptSyt|gggdƒdSWq…tij otSXntƒ}|i|t ƒx5|idƒD]$\}}||i ƒjotSq®WdS(s  Returns True if the connection is dropped and should be closed. :param conn: :class:`httplib.HTTPConnection` object. Note: For platforms like AppEngine, this will always return ``False`` to let the platform handle connection recycling transparently for us. tsockgiN( tgetattrtFalsetNonetTrueRRtsocketterrortregisterRtfileno(tconnRtptfnotev((s8/tmp/pip-build-cD3xZi/urllib3/urllib3/util/connection.pytis_connection_dropped s$      cCsR|\}}|idƒo|idƒ}nd}xðti||dtiƒD]Ó}|\}} } } } d} ypti|| | ƒ} t| |ƒ|tij o| i|ƒn|o| i |ƒn| i | ƒ| SWqQti j o0}|}| dj o| i ƒd} q$qQXqQW|dj o |‚nti dƒ‚dS(sdConnect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. t[s[]is!getaddrinfo returns an empty listN( t startswithtstripRRt getaddrinfot SOCK_STREAMt_set_socket_optionst_GLOBAL_DEFAULT_TIMEOUTt settimeouttbindtconnectR tclose(taddressttimeouttsource_addresstsocket_optionsthosttportterrtrestaftsocktypetprotot canonnametsaRte((s8/tmp/pip-build-cD3xZi/urllib3/urllib3/util/connection.pytcreate_connection0s2       cCs4|djodSx|D]}|i|ŒqWdS(N(Rt setsockopt(Rtoptionstopt((s8/tmp/pip-build-cD3xZi/urllib3/urllib3/util/connection.pyR_s  ( RRRRt ImportErrorRRRRR*R(((s8/tmp/pip-build-cD3xZi/urllib3/urllib3/util/connection.pyts  $.