lib/subl/settings.py
def parse(self, settings):
        '''
        Assigns the contents of `settings` to the internal instance variables.
        The settings may be provided as a `dict` or as a `sublime.Settings`
        instance.

        The accepted settings are listed in the default settings file. They are
        extracted by this method, if available, or given reasonable defaults.

        After parsing, the settings are normalized based on what's available.
        '''
        if not isinstance(settings, (sublime.Settings, dict)):
            raise TypeError(
                'settings must be sublime.Settings or dict: %r' % settings
            )

        # this logic relies on both instance types having a `get` method
        self._ycmd_root_directory = settings.get('ycmd_root_directory', None)
        self._ycmd_default_settings_path = \
            settings.get('ycmd_default_settings_path', None)
        self._ycmd_python_binary_path = \
            settings.get('ycmd_python_binary_path', None)
        self._ycmd_language_whitelist = \
            settings.get('ycmd_language_whitelist', None)
        self._ycmd_language_blacklist = \
            settings.get('ycmd_language_blacklist', None)
        self._ycmd_language_filetype = \
            settings.get('ycmd_language_filetype', {})

        self._ycmd_idle_suicide_seconds = \
            settings.get('ycmd_idle_suicide_seconds', None)
        self._ycmd_check_interval_seconds = \
            settings.get('ycmd_check_interval_seconds', None)

        self._ycmd_log_level = settings.get('ycmd_log_level', None)
        self._ycmd_log_file = settings.get('ycmd_log_file', None)
        self._ycmd_keep_logs = settings.get('ycmd_keep_logs', False)

        self._ycmd_force_semantic_completion = \
            settings.get('ycmd_force_semantic_completion', False)

        self._sublime_ycmd_log_level = \
            settings.get('sublime_ycmd_log_level', None)
        self._sublime_ycmd_log_file = \
            settings.get('sublime_ycmd_log_file', None)
        self._sublime_ycmd_background_threads = \
            settings.get('sublime_ycmd_background_threads', None)

        try:
            self._normalize()
        except (TypeError, ValueError):
            # whatever, we tried
            pass

        Assigns the contents of `settings` to the internal instance variables.
        The settings may be provided as a `dict` or as a `sublime.Settings`
        instance.

        The accepted settings are listed in the default settings file. They are
        extracted by this method, if available, or given reasonable defaults.

        After parsing, the settings are normalized based on what's available.
        
Assigns the contents of `settings` to the internal instance variables.
The settings may be provided as a `dict` or as a `sublime.Settings`
instance.

The accepted settings are listed in the default settings file. They are
extracted by this method, if available, or given reasonable defaults.

After parsing, the settings are normalized based on what's available.
Assigns the contents of ` settings ` to the internal instance variables . The settings may be provided as a ` dict ` or as a ` sublime . Settings ` instance . The accepted settings are listed in the default settings file . They are extracted by this method if available or given reasonable defaults . After parsing the settings are normalized based on what ' s available .
def parse(self, settings):
        if not isinstance(settings, (sublime.Settings, dict)):
            raise TypeError(
                'settings must be sublime.Settings or dict: %r' % settings
            )
        self._ycmd_root_directory = settings.get('ycmd_root_directory', None)
        self._ycmd_default_settings_path = \
            settings.get('ycmd_default_settings_path', None)
        self._ycmd_python_binary_path = \
            settings.get('ycmd_python_binary_path', None)
        self._ycmd_language_whitelist = \
            settings.get('ycmd_language_whitelist', None)
        self._ycmd_language_blacklist = \
            settings.get('ycmd_language_blacklist', None)
        self._ycmd_language_filetype = \
            settings.get('ycmd_language_filetype', {})
        self._ycmd_idle_suicide_seconds = \
            settings.get('ycmd_idle_suicide_seconds', None)
        self._ycmd_check_interval_seconds = \
            settings.get('ycmd_check_interval_seconds', None)
        self._ycmd_log_level = settings.get('ycmd_log_level', None)
        self._ycmd_log_file = settings.get('ycmd_log_file', None)
        self._ycmd_keep_logs = settings.get('ycmd_keep_logs', False)
        self._ycmd_force_semantic_completion = \
            settings.get('ycmd_force_semantic_completion', False)
        self._sublime_ycmd_log_level = \
            settings.get('sublime_ycmd_log_level', None)
        self._sublime_ycmd_log_file = \
            settings.get('sublime_ycmd_log_file', None)
        self._sublime_ycmd_background_threads = \
            settings.get('sublime_ycmd_background_threads', None)
        try:
            self._normalize()
        except (TypeError, ValueError):
            pass
def parse ( self , settings ) : if not isinstance ( settings , ( sublime . Settings , dict ) ) : raise TypeError ( 'settings must be sublime.Settings or dict: %r' % settings ) self . _ycmd_root_directory = settings . get ( 'ycmd_root_directory' , None ) self . _ycmd_default_settings_path = settings . get ( 'ycmd_default_settings_path' , None ) self . _ycmd_python_binary_path = settings . get ( 'ycmd_python_binary_path' , None ) self . _ycmd_language_whitelist = settings . get ( 'ycmd_language_whitelist' , None ) self . _ycmd_language_blacklist = settings . get ( 'ycmd_language_blacklist' , None ) self . _ycmd_language_filetype = settings . get ( 'ycmd_language_filetype' , { } ) self . _ycmd_idle_suicide_seconds = settings . get ( 'ycmd_idle_suicide_seconds' , None ) self . _ycmd_check_interval_seconds = settings . get ( 'ycmd_check_interval_seconds' , None ) self . _ycmd_log_level = settings . get ( 'ycmd_log_level' , None ) self . _ycmd_log_file = settings . get ( 'ycmd_log_file' , None ) self . _ycmd_keep_logs = settings . get ( 'ycmd_keep_logs' , False ) self . _ycmd_force_semantic_completion = settings . get ( 'ycmd_force_semantic_completion' , False ) self . _sublime_ycmd_log_level = settings . get ( 'sublime_ycmd_log_level' , None ) self . _sublime_ycmd_log_file = settings . get ( 'sublime_ycmd_log_file' , None ) self . _sublime_ycmd_background_threads = settings . get ( 'sublime_ycmd_background_threads' , None ) try : self . _normalize ( ) except ( TypeError , ValueError ) : pass
Assigns the contents of `settings` to the internal instance variables.
Assigns the contents of ` settings ` to the internal instance variables .
'''
        Assigns the contents of `settings` to the internal instance variables.
        The settings may be provided as a `dict` or as a `sublime.Settings`
        instance.

        The accepted settings are listed in the default settings file. They are
        extracted by this method, if available, or given reasonable defaults.

        After parsing, the settings are normalized based on what's available.
        ''' # this logic relies on both instance types having a `get` method # whatever, we tried
self
settings