(self)
Remove any sections that have no options.
Remove any sections that have no options.
Remove any sections that have no options .
def RemoveEmptySections(self):
        "Remove any sections that have no options."
        for section in self.sections():
            if not self.GetOptionList(section):
                self.remove_section(section)
def RemoveEmptySections ( self ) : for section in self . sections ( ) : if not self . GetOptionList ( section ) : self . remove_section ( section )