#NEWLINE# def saveRoster( self ) : #NEWLINE# #INDENT# jids = [ agent . jid for agent in self . agents ] #NEWLINE# content = ( '\n' . join ( jids ) + '\n' ) #NEWLINE# def blockingWrite( ) : #NEWLINE# #INDENT# roster = open ( self . rosterPath , 'w' ) #NEWLINE# roster . write ( content ) #NEWLINE# roster . close ( ) #NEWLINE# #UNINDENT# config . reactor . callInThread ( blockingWrite )