#NEWLINE# def get_connection( self ) : #NEWLINE# #INDENT# _class = _class . connection_params [ 0 ] #NEWLINE# try : #NEWLINE# #INDENT# return _class ( * self . connection_params [ 1 ] [ 0 : 2 ] , ** self . connection_params [ 2 ] ) #NEWLINE# #UNINDENT# except six . moves . http_client . InvalidURL : #NEWLINE# #INDENT# raise exceptions . EndpointException ( )