code: def upgrade(self):
          
          warn('Upgrading ' + self.filename)
          if self.backup_config(self.filename):
              return self.write_default_config(self.filename)
          return False
docs: Upgrade the config file.