#NEWLINE# def unsubscribe( self ) : #NEWLINE# #INDENT# 'Unregister this object as a listener on the bus.' #NEWLINE# for channel in self . bus . listeners : #NEWLINE# #INDENT# method = getattr ( self , channel , None ) #NEWLINE# if ( method is not None ) : #NEWLINE# #INDENT# self . bus . unsubscribe ( channel , method )