code: def remove_line(self, section, line):
          
          try:
              s = self._get_section(section, create=False)
          except KeyError:
              # No such section, skip.
              return 0
  
          return s.remove(line)
docs: Remove all instances of a line.
  
          Returns:
              int: the number of lines removed