plugin/view.py
def has_notified_server(view, server, key=NOTIFIED_SERVERS_KEY):
    '''
    Checks if a given `server` is in the notified server set for a `view`.
    '''
    if not isinstance(view, View):
        logger.warning('view does not appear valid: %r', view)

    if key not in view:
        logger.error(
            'notified server set is not initialized for view: %r', view,
        )

    notified_servers = view[key]
    assert isinstance(notified_servers, set), \
        '[internal] notified server set is not a set: %r' % (notified_servers)

    server_key = get_server_key(server)
    return server_key in notified_servers

    Checks if a given `server` is in the notified server set for a `view`.
    
Checks if a given `server` is in the notified server set for a `view`.
Checks if a given ` server ` is in the notified server set for a ` view ` .
def has_notified_server(view, server, key=NOTIFIED_SERVERS_KEY):
    if not isinstance(view, View):
        logger.warning('view does not appear valid: %r', view)
    if key not in view:
        logger.error(
            'notified server set is not initialized for view: %r', view,
        )
    notified_servers = view[key]
    assert isinstance(notified_servers, set), \
        '[internal] notified server set is not a set: %r' % (notified_servers)
    server_key = get_server_key(server)
    return server_key in notified_servers
def has_notified_server ( view , server , key = NOTIFIED_SERVERS_KEY ) : if not isinstance ( view , View ) : logger . warning ( 'view does not appear valid: %r' , view ) if key not in view : logger . error ( 'notified server set is not initialized for view: %r' , view , ) notified_servers = view [ key ] assert isinstance ( notified_servers , set ) , '[internal] notified server set is not a set: %r' % ( notified_servers ) server_key = get_server_key ( server ) return server_key in notified_servers
Checks if a given `server` is in the notified server set for a `view`.
Checks if a given ` server ` is in the notified server set for a ` view ` .
'''
    Checks if a given `server` is in the notified server set for a `view`.
    '''
view
server
key