code: def _convert_to_dict(self, setting):
          '''
          Converts a settings file into a dictionary, ignoring python defaults
  
          @param setting: A loaded setting module
          '''
          the_dict = {}
          set = dir(setting)
          for key in set:
              if key in self.ignore:
                  continue
              value = getattr(setting, key)
              the_dict[key] = value
  
          return the_dicf _convert_to_dict(self, setting):
          '''
          Converts a settings file into a dictionary, ignoring python defaults
  
          @param setting: A loaded setting module
          '''
          the_dict = {}
          set = dir(setting)
          for key in set:
              if key in self.ignore:
                  continue
              value = getattr(setting, key)
              the_dict[key] = value
  
          return the_dict
docs: Converts a settings file into a dictionary, ignoring python defaults
  
          @param setting: A loaded setting module