HomePhabricator

Fix exit in generate_header.py and some formatting nits

Description

Fix exit in generate_header.py and some formatting nits

Summary:
Possible exit solutions are sys.exit() or os._exit(), but
os.exit() doesn't exist. Using sys.exit() incidentally removes the
dependency to os.
Also fix some spaces in the generated code so it matches our
clang-format rules, as it is trivial and saves as much as 3 bytes.

Test Plan:

ninja check

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D3418

Details

Provenance
FabienAuthored on Jun 26 2019, 06:56
FabienPushed on Jun 27 2019, 08:50
Reviewer
Restricted Project
Differential Revision
D3418: Fix exit in generate_header.py and some formatting nits
Parents
rSTAGINGcb56cbc0d97e: bench: Make CoinSelection output groups pass eligibility filter
Branches
Unknown
Tags
Unknown