#NEWLINE# def _IsRevokedByScopeBlacklist( self , scope , client_id ) : #NEWLINE# #INDENT# 'Checks if issued tokens match scopes listed in scope black list.\n\n    By making this a method, this can be expanded to support more complex\n    matching such as regex scope strings.\n\n    Args:\n      scope: String of the scope URI for an issued token - unused.\n      client_id: String of the client domain issued the token.\n                 May include spaces.\n\n    Returns:\n      True if the token is to be revoked by the scope black list else False.\n    ' #NEWLINE# if ( not client_id ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# candidate_scopes = set ( [ scope . rstrip ( '/' ) , ( scope . rstrip ( '/' ) + '/' ) ] ) #NEWLINE# return ( self . _scope_blacklist_set & candidate_scopes )