code: def _add_section(self, line, section=None):
          '''parse a line for a section, and return the parsed section (if not
             None)
  
             Parameters
             ==========
             line: the line to parse
             section: the current (or previous) section
  
             Resulting data structure is:
             config['post'] (in lowercase)
  
          '''
          # Remove any comments
          line = line.split('#',1)[0].strip()
  
          # Is there a section name?
          parts = line.split(' ')
          if len(parts) > 1:
              name = ' '.join(parts[1:])          
          section = re.sub('[%]|(\s+)','',parts[0]).lower()
  
          if section not in self.config: 
              self.config[section] = []
              bot.debug("Adding section %s" %section)
  
          return sectiof _add_section(self, line, section=None):
          '''parse a line for a section, and return the parsed section (if not
             None)
  
             Parameters
             ==========
             line: the line to parse
             section: the current (or previous) section
  
             Resulting data structure is:
             config['post'] (in lowercase)
  
          '''
          # Remove any comments
          line = line.split('#',1)[0].strip()
  
          # Is there a section name?
          parts = line.split(' ')
          if len(parts) > 1:
              name = ' '.join(parts[1:])          
          section = re.sub('[%]|(\s+)','',parts[0]).lower()
  
          if section not in self.config: 
              self.config[section] = []
              bot.debug("Adding section %s" %section)
  
          return section
docs: parse a line for a section, and return the parsed section (if not
             None)
  
             Parameters
             ==========
             line: the line to parse
             section: the current (or previous) section
  
             Resulting data structure is:
             config['post'] (in lowercase)