(self)
Update user configuration file.

        If self not empty after removing empty sections, write the file
        to disk. Otherwise, remove the file from disk if it exists.
Update user configuration file.
Update user configuration file .
def Save(self):
        """Update user configuration file.

        If self not empty after removing empty sections, write the file
        to disk. Otherwise, remove the file from disk if it exists.
        """
        fname = self.file
        if fname and fname[0] != '#':
            if not self.IsEmpty():
                try:
                    cfgFile = open(fname, 'w')
                except OSError:
                    os.unlink(fname)
                    cfgFile = open(fname, 'w')
                with cfgFile:
                    self.write(cfgFile)
            elif os.path.exists(self.file):
                os.remove(self.file)
def Save ( self ) : fname = self . file if fname and fname [ 0 ] != '#' : if not self . IsEmpty ( ) : try : cfgFile = open ( fname , 'w' ) except OSError : os . unlink ( fname ) cfgFile = open ( fname , 'w' ) with cfgFile : self . write ( cfgFile ) elif os . path . exists ( self . file ) : os . remove ( self . file )