lib/subl/settings.py
def has_same_ycmd_settings(settings1, settings2):
    '''
    Returns true if `settings1` and `settings2` have the same ycmd server
    configuration, and false otherwise.

    This can be used to detect when setting changes require ycmd restarts.
    '''
    if not isinstance(settings1, Settings):
        raise TypeError('settings are not Settings: %r' % (settings1))
    if not isinstance(settings2, Settings):
        raise TypeError('settings are not Settings: %r' % (settings2))

    for ycmd_setting_key in SUBLIME_SETTINGS_YCMD_SERVER_KEYS:
        ycmd_setting_value1 = getattr(settings1, ycmd_setting_key)
        ycmd_setting_value2 = getattr(settings2, ycmd_setting_key)

        if ycmd_setting_value1 != ycmd_setting_value2:
            return False

    # else, everything matched!
    return True

    Returns true if `settings1` and `settings2` have the same ycmd server
    configuration, and false otherwise.

    This can be used to detect when setting changes require ycmd restarts.
    
Returns true if `settings1` and `settings2` have the same ycmd server
configuration, and false otherwise.

This can be used to detect when setting changes require ycmd restarts.
Returns true if ` settings1 ` and ` settings2 ` have the same ycmd server configuration and false otherwise . This can be used to detect when setting changes require ycmd restarts .
def has_same_ycmd_settings(settings1, settings2):
    if not isinstance(settings1, Settings):
        raise TypeError('settings are not Settings: %r' % (settings1))
    if not isinstance(settings2, Settings):
        raise TypeError('settings are not Settings: %r' % (settings2))
    for ycmd_setting_key in SUBLIME_SETTINGS_YCMD_SERVER_KEYS:
        ycmd_setting_value1 = getattr(settings1, ycmd_setting_key)
        ycmd_setting_value2 = getattr(settings2, ycmd_setting_key)
        if ycmd_setting_value1 != ycmd_setting_value2:
            return False
    return True
def has_same_ycmd_settings ( settings1 , settings2 ) : if not isinstance ( settings1 , Settings ) : raise TypeError ( 'settings are not Settings: %r' % ( settings1 ) ) if not isinstance ( settings2 , Settings ) : raise TypeError ( 'settings are not Settings: %r' % ( settings2 ) ) for ycmd_setting_key in SUBLIME_SETTINGS_YCMD_SERVER_KEYS : ycmd_setting_value1 = getattr ( settings1 , ycmd_setting_key ) ycmd_setting_value2 = getattr ( settings2 , ycmd_setting_key ) if ycmd_setting_value1 != ycmd_setting_value2 : return False return True
Returns true if `settings1` and `settings2` have the same ycmd server
configuration, and false otherwise.
Returns true if ` settings1 ` and ` settings2 ` have the same ycmd server configuration and false otherwise .
'''
    Returns true if `settings1` and `settings2` have the same ycmd server
    configuration, and false otherwise.

    This can be used to detect when setting changes require ycmd restarts.
    ''' # else, everything matched!
settings1
settings2