As Paul mentioned, instead of using the explicit open/close as in:
exitcode = open(ec_path, 'w') exitcode.write(ec) exitcode.close()
You can use the context manager style to write:
with open(ec_path, 'w') as exitcode: exitcode.write(ec)
I don't know if there is a preferred name for the exit_code file. The one chosen looks good to me.
« Back to merge proposal
As Paul mentioned, instead of using the explicit open/close as in:
exitcode = open(ec_path, 'w') write(ec) close()
exitcode.
exitcode.
You can use the context manager style to write:
with open(ec_path, 'w') as exitcode:
exitcode. write(ec)
I don't know if there is a preferred name for the exit_code file. The one chosen looks good to me.