Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/manager.py @ 24:853a3f4b9659
correct another typo in manager (why cut+paste is evil)
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 15:43:47 -0700 |
parents | a8601c2273b5 |
children | fc31d3f26755 |
comparison
equal
deleted
inserted
replaced
23:a8601c2273b5 | 24:853a3f4b9659 |
---|---|
57 parser = self.parser() | 57 parser = self.parser() |
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(self, 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: |