(self)
return conn
Return a fresh :class:`HTTPConnection`.
Return a fresh :class:`HTTPConnection`.
Return a fresh : class : HTTPConnection .
def _new_conn(self):
        """
        Return a fresh :class:`HTTPConnection`.
        """
        self.num_connections += 1
        log.debug("Starting new HTTP connection (%d): %s:%s",
                  self.num_connections, self.host, self.port or "80")

        conn = self.ConnectionCls(host=self.host, port=self.port,
                                  timeout=self.timeout.connect_timeout,
                                  strict=self.strict, **self.conn_kw)
        return conn
def _new_conn ( self ) : self . num_connections += 1 log . debug ( "Starting new HTTP connection (%d): %s:%s" , self . num_connections , self . host , self . port or "80" ) conn = self . ConnectionCls ( host = self . host , port = self . port , timeout = self . timeout . connect_timeout , strict = self . strict , * * self . conn_kw ) return conn