#NEWLINE# def update( self , headers ) : #NEWLINE# #INDENT# 'This method is a public interface for a throttle storage class' #NEWLINE# self . prune ( ) #NEWLINE# if ( 'x-throttling-control' not in headers ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# status = self . parse_throttle ( headers [ 'x-throttling-control' ] ) #NEWLINE# retry_after = int ( headers . get ( 'retry-after' , 0 ) ) #NEWLINE# ( sql , values ) = self . convert ( status , retry_after ) #NEWLINE# with status . db : #NEWLINE# #INDENT# self . db . execute ( sql , values )