From d4519f25fda07f0af56c0f89e39802f4ac915650 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 26 Apr 2016 21:39:25 +0800 Subject: prepare_sbpfit.py: minor update to output file write --- prepare_sbpfit.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/prepare_sbpfit.py b/prepare_sbpfit.py index 4ec7cf4..a7c5d1c 100755 --- a/prepare_sbpfit.py +++ b/prepare_sbpfit.py @@ -6,9 +6,12 @@ # to fill the config. # # Aaron LI -# 2016-04-21 +# Created: 2016-04-21 +# Updated: 2016-04-26 # -# ChangeLog: +# Changelog: +# 2016-04-26: +# * Minor update to output file write # import sys @@ -89,8 +92,7 @@ def main(): outfile = os.path.basename(args.config) sbpfit_conf_new = update_sbpfit_conf(sbpfit_conf, info) - with open(outfile, "w") as outf: - outf.write("".join(sbpfit_conf_new)) + open(outfile, "w").write("".join(sbpfit_conf_new)) if __name__ == "__main__": -- cgit v1.2.2