#NEWLINE# def is_revoked( self , task , dt = None , peek = True ) : #NEWLINE# #INDENT# res = self . _get_data ( task . revoke_id , peek = True ) #NEWLINE# if ( res is EmptyData ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# ( revoke_until , revoke_once ) = pickle . loads ( res ) #NEWLINE# if revoke_once : #NEWLINE# #INDENT# if ( not peek ) : #NEWLINE# #INDENT# self . restore ( task ) #NEWLINE# #UNINDENT# return True #NEWLINE# #UNINDENT# return ( ( revoke_until is None ) or ( revoke_until > dt ) )