#NEWLINE# def __call__( self , message , count = None , total = None ) : #NEWLINE# #INDENT# if ( ( self . last_message and ( message != self . last_message ) ) or ( ( time . time ( ) - self . last_progress ) > self . update_interval ) ) : #NEWLINE# #INDENT# self . last_progress = time . time ( ) #NEWLINE# self . update ( message , count , total ) #NEWLINE# self . update_suppressed = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . update_suppressed = True #NEWLINE# #UNINDENT# self . last_message = message #NEWLINE# self . last_count = count #NEWLINE# self . last_total = total