#NEWLINE# def __init__( self , host , port = None , strict = False , timeout = Timeout . DEFAULT_TIMEOUT , maxsize = 1 , block = False , headers = None , retries = None , _proxy = None , _proxy_headers = None , **conn_kw ) : #NEWLINE# #INDENT# ConnectionPool . __init__ ( self , host , headers ) #NEWLINE# RequestMethods . __init__ ( self , headers ) #NEWLINE# self . strict = strict #NEWLINE# if ( not isinstance ( timeout , Timeout ) ) : #NEWLINE# #INDENT# timeout = Timeout . from_float ( timeout ) #NEWLINE# #UNINDENT# if ( retries is None ) : #NEWLINE# #INDENT# retries = Retry . DEFAULT #NEWLINE# #UNINDENT# self . timeout = timeout #NEWLINE# self . retries = retries #NEWLINE# self . pool = self . QueueCls ( maxsize ) #NEWLINE# self . block = block #NEWLINE# self . proxy = _proxy #NEWLINE# self . proxy_headers = ( _proxy_headers or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# for _ in xrange ( maxsize ) : #NEWLINE# #INDENT# self . pool . put ( None ) #NEWLINE# #UNINDENT# self . num_connections = 0 #NEWLINE# self . num_requests = 0 #NEWLINE# self . conn_kw = conn_kw #NEWLINE# if self . proxy : #NEWLINE# #INDENT# self . conn_kw . setdefault ( 'socket_options' , [ ] )