#NEWLINE# def tadvance( self , incr = 1 ) : #NEWLINE# #INDENT# self . t += incr #NEWLINE# while ( self . q and ( self . q [ 0 ] [ 0 ] <= self . t ) ) : #NEWLINE# #INDENT# heapq . heappop ( self . q ) [ 1 ] ( )