(self, section, option)
return existed
Remove an option.
Remove an option.
Remove an option .
def remove_option(self, section, option):
        """Remove an option."""
        if not section or section == self.default_section:
            sectdict = self._defaults
        else:
            try:
                sectdict = self._sections[section]
            except KeyError:
                raise NoSectionError(section) from None
        option = self.optionxform(option)
        existed = option in sectdict
        if existed:
            del sectdict[option]
        return existed
def remove_option ( self , section , option ) : if not section or section == self . default_section : sectdict = self . _defaults else : try : sectdict = self . _sections [ section ] except KeyError : raise NoSectionError ( section ) from None option = self . optionxform ( option ) existed = option in sectdict if existed : del sectdict [ option ] return existed