#NEWLINE# def connect( self ) : #NEWLINE# #INDENT# protocol = 'http' #NEWLINE# if ( ( 'rpcssl' in self . config ) and bool ( self . config [ 'rpcssl' ] ) and ( int ( self . config [ 'rpcssl' ] ) > 0 ) ) : #NEWLINE# #INDENT# protocol = 'https' #NEWLINE# #UNINDENT# serverURL = ( ( ( ( ( ( ( ( protocol + '://' ) + serverURL . config [ 'rpcuser' ] ) + ':' ) + self . config [ 'rpcpassword' ] ) + '@' ) + str ( self . config [ 'rpcbind' ] ) ) + ':' ) + str ( self . config [ 'rpcport' ] ) ) #NEWLINE# self . _proxy = AuthServiceProxy ( serverURL ) #NEWLINE# return self . _proxy