# HG changeset patch # User Jeff Hammel # Date 1273273649 25200 # Node ID 494ea3c2f578326cd9cb8a4a4d7754c49d53e528 # Parent 6e282cacd5f0bc15ef7d701637d3192c18621bd5 use correct ConfigParser method diff -r 6e282cacd5f0 -r 494ea3c2f578 profilemanager/manager.py --- a/profilemanager/manager.py Fri May 07 16:06:05 2010 -0700 +++ b/profilemanager/manager.py Fri May 07 16:07:29 2010 -0700 @@ -287,9 +287,8 @@ # if there are no backups, delete the ``backups`` line # and the backups directory - import pdb; pdb.set_trace() if not backups: - parser.remove(section, 'Backups') + parser.remove_option(section, 'Backups') backups_dir = os.path.join(self.profile_dir, self.backups_dir) if not os.listdir(backups_dir): shutil.rmtree(backups_dir)