#NEWLINE# def get_client( self , name ) : #NEWLINE# #INDENT# if ( name in self . _connected_clients ) : #NEWLINE# #INDENT# return self . _connected_clients [ name ] #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# aclass = next ( ( s for s in self . _supported_clients if ( name in s . __name__ ) ) ) #NEWLINE# sclient = aclass ( ) #NEWLINE# connected_client = sclient . create ( ) #NEWLINE# self . _connected_clients [ name ] = sclient #NEWLINE# return connected_client #NEWLINE# #UNINDENT# except StopIteration : #NEWLINE# #INDENT# LOG . warning ( 'Requested client %s not found' , name ) #NEWLINE# raise