#NEWLINE# def __init__( self , timeouts = None , transport = Transport , allow_non_master = None ) : #NEWLINE# #INDENT# 'Constructor for the Client class.\n\n    Arguments are the same as for L{AbstractClient}.\n\n    ' #NEWLINE# cl . AbstractStubClient . __init__ ( self , timeouts = timeouts , transport = transport , allow_non_master = allow_non_master ) #NEWLINE# stub . ClientRpcStub . __init__ ( self ) #NEWLINE# retries = 12 #NEWLINE# for try_no in range ( 0 , retries ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . _InitTransport ( ) #NEWLINE# return #NEWLINE# #UNINDENT# except errors . TimeoutError : #NEWLINE# #INDENT# logging . debug ( 'Timout trying to connect to WConfD' ) #NEWLINE# if ( try_no == ( retries - 1 ) ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# logging . debug ( 'Will retry' ) #NEWLINE# time . sleep ( ( ( try_no * 10 ) + ( 10 * random . random ( ) ) ) )