def is_revoked(events, token_data):
 return any([matches(e, token_data) for e in events])

def is_revoked ( events , token_data ) : return any ( [ matches ( e , token_data ) for e in events ] )
check if a token matches a revocation event .