def reset_to_defaults(self, save=True, verbose=False, section=None):
        """
        Reset config to Default values
        """
        for sec, options in self.defaults:
            if section == None or section == sec:
                for option in options:
                    value = options[ option ]
                    self._set(sec, option, value, verbose)
        if save:
            self._save()
def reset_to_defaults ( self , save = True , verbose = False , section = None ) : for sec , options in self . defaults : if section == None or section == sec : for option in options : value = options [ option ] self . _set ( sec , option , value , verbose ) if save : self . _save ( )
Reset config to Default values