#NEWLINE# def update( self , * args , **kwargs ) : #NEWLINE# #INDENT# with self . mutex : #NEWLINE# #INDENT# ( data , limit ) = ( self . data , self . limit ) #NEWLINE# data . update ( * args , ** args ) #NEWLINE# if ( limit and ( len ( data ) > limit ) ) : #NEWLINE# #INDENT# for _ in range ( ( len ( data ) - limit ) ) : #NEWLINE# #INDENT# data . popitem ( last = False )