changeset 71:494ea3c2f578

use correct ConfigParser method
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 May 2010 16:07:29 -0700
parents 6e282cacd5f0
children 619f5918b998
files profilemanager/manager.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)