Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/manager.py @ 26:d260de170cca
no need to pass self here
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 15:48:20 -0700 |
parents | fc31d3f26755 |
children | 5988a15da3b4 |
comparison
equal
deleted
inserted
replaced
25:fc31d3f26755 | 26:d260de170cca |
---|---|
58 ctr = 0 | 58 ctr = 0 |
59 section = 'Profile%d' % ctr # unsure of this naming convention | 59 section = 'Profile%d' % ctr # unsure of this naming convention |
60 while section in parser.sections(): | 60 while section in parser.sections(): |
61 ctr += 1 | 61 ctr += 1 |
62 section = 'Profile%d' % ctr | 62 section = 'Profile%d' % ctr |
63 parser.add_section(self, section) | 63 parser.add_section(section) |
64 parser.set(section, 'Name', name) | 64 parser.set(section, 'Name', name) |
65 parser.set(section, 'IsRelative', '%d' % int(relative)) | 65 parser.set(section, 'IsRelative', '%d' % int(relative)) |
66 parser.set(section, 'Path', relative and dirname or path) | 66 parser.set(section, 'Path', relative and dirname or path) |
67 if len(parser.sections()) == 1: | 67 if len(parser.sections()) == 1: |
68 parser.set(section, 'Default', '1') | 68 parser.set(section, 'Default', '1') |