diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-04-26 21:39:25 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-04-26 21:39:25 +0800 |
commit | d4519f25fda07f0af56c0f89e39802f4ac915650 (patch) | |
tree | 2742d28308699c9276ee117f6a3ff9d6436cdbf7 | |
parent | 92c2197bb5ba211978c2521e958b4a5ddb805695 (diff) | |
download | cexcess-d4519f25fda07f0af56c0f89e39802f4ac915650.tar.bz2 |
prepare_sbpfit.py: minor update to output file write
-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__": |