Mercurial > hg > martINI
changeset 15:5de4f7d434de
py3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 20 Feb 2017 14:50:23 -0800 |
parents | 904bb82c3308 |
children | 8ae3a7fd466a |
files | martini/config.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)