comparison martini/config.py @ 6:09bed87f7fa4

fix some errors
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 24 Nov 2010 10:49:37 -0800
parents 3c3522ce6e3a
children 7c8f23eae311
comparison
equal deleted inserted replaced
5:13d85b455533 6:09bed87f7fa4
122 print >> fp, '[%s]' % section 122 print >> fp, '[%s]' % section
123 options = self.options(section) 123 options = self.options(section)
124 if sorted: 124 if sorted:
125 options.sort() 125 options.sort()
126 for option in options: 126 for option in options:
127 print >> fp, "%s = %s" % (option, self.get(section, option, raw, vars)) 127 print >> fp, "%s = %s" % (option, self.get(section, option, raw=raw, vars=vars))
128 if section != sections[-1]: 128 if section != sections[-1]:
129 print >> fp 129 print >> fp
130 130
131 if __name__ == '__main__': 131 if __name__ == '__main__':
132 import sys 132 import sys