#NEWLINE# def cancel( self , event ) : #NEWLINE# #INDENT# 'Remove an event from the queue.\n\n        This must be presented the ID as returned by enter().\n        If the event is not in the queue, this raises ValueError.\n\n        ' #NEWLINE# self . _queue . remove ( event ) #NEWLINE# heapq . heapify ( self . _queue )