# HG changeset patch # User Jeff Hammel # Date 1487631023 28800 # Node ID 5de4f7d434dec0f246df97229f492aeb1eacdee6 # Parent 904bb82c3308f2e3cbaad253bd245bdd6791b0d5 py3 diff -r 904bb82c3308 -r 5de4f7d434de martini/config.py --- a/martini/config.py Mon Feb 20 14:46:42 2017 -0800 +++ b/martini/config.py Mon Feb 20 14:50:23 2017 -0800 @@ -130,14 +130,14 @@ sections.sort() for section in sections: - print >> fp, '[%s]' % section + fp.write('[%s]\n' % section) options = self.options(section) if sorted: options.sort() for option in options: - print >> fp, "%s = %s" % (option, self.get(section, option, raw=raw, vars=vars)) + fp.write("%s = %s\n" % (option, self.get(section, option, raw=raw, vars=vars))) if section != sections[-1]: - print >> fp + fp.write('\n') if __name__ == '__main__': import sys @@ -150,6 +150,6 @@ munger.read(*args) if options.missing: for missing in munger.missing(): - print missing + print(missing) else: munger.write(sys.stdout)