#NEWLINE# def _gen_bind_adress( self , transport , endpoint ) : #NEWLINE# #INDENT# if ( transport == 'ipc' ) : #NEWLINE# #INDENT# if ( not ( 'unixsocket' in self . config ) ) : #NEWLINE# #INDENT# err_msg = 'Ipc transport layer was selected, but no unixsocket path could be found in conf file' #NEWLINE# errors_logger . exception ( err_msg ) #NEWLINE# raise KeyError ( err_msg ) #NEWLINE# #UNINDENT# return '{0}://{1}' . format ( transport , self . config [ 'unixsocket' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return '{0}://{1}' . format ( transport , endpoint )