parameters: (self, file_name)
docstring: Load configuration from INI file.
docstring_summary: Load configuration from INI file.
docstring_tokens: Load configuration from INI file .
function: def load(self, file_name):
          """Load configuration from INI file."""
          config = ConfigParser.SafeConfigParser()
          config.read(file_name)
          # Get colors.
          for key in DEFAULT_COLORS.keys():
              try:
                  self.colors[key] = config.get('colors', key)
              except ConfigParser.Error:
                  pass  # swallow
          # Load information about language entities.
          for name in KNOWN_LANGUAGE_ENTITIES:
              path = 'entity/%s' % name
              try:
                  for prop in LANGUAGE_ENTITIES_PROPERTIES:
                      self.lang_entities[name][prop] = config.get(path, prop)
              except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
                  pass
function_tokens: def load ( self , file_name ) : config = ConfigParser . SafeConfigParser ( ) config . read ( file_name ) # Get colors. for key in DEFAULT_COLORS . keys ( ) : try : self . colors [ key ] = config . get ( 'colors' , key ) except ConfigParser . Error : pass # swallow # Load information about language entities. for name in KNOWN_LANGUAGE_ENTITIES : path = 'entity/%s' % name try : for prop in LANGUAGE_ENTITIES_PROPERTIES : self . lang_entities [ name ] [ prop ] = config . get ( path , prop ) except ( ConfigParser . NoSectionError , ConfigParser . NoOptionError ) : pass