#NEWLINE# def add( self , remote_name , remote ) : #NEWLINE# #INDENT# with fasteners . InterProcessLock ( ( self . _filename + '.lock' ) ) : #NEWLINE# #INDENT# ( remotes , refs ) = self . _load ( ) #NEWLINE# if ( remote_name in remotes ) : #NEWLINE# #INDENT# raise ConanException ( ( 'Remote %s already exist in remotes (use update to modify)' % remote_name ) ) #NEWLINE# #UNINDENT# remotes [ remote_name ] = remote #NEWLINE# self . _save ( remotes , refs )