#NEWLINE# def clear( self , interval = None ) : #NEWLINE# #INDENT# '\n        Stop/remove all tickers from handler.\n\n        Args:\n            interval (int): Only stop tickers with this interval.\n\n        Notes:\n            This is the only supported way to kill tickers related to\n            non-db objects.\n\n        ' #NEWLINE# self . ticker_pool . stop ( interval ) #NEWLINE# if interval : #NEWLINE# #INDENT# self . ticker_storage = dict ( ( ( store_key , self ) for store_key in self . ticker_storage if ( store_key [ 1 ] != interval ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . ticker_storage = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# self . save ( )