diff options
-rwxr-xr-x | prepare_sbpfit.py | 10 |
1 files 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__": |