Page MenuHomePhabricator

Fix exit in generate_header.py and some formatting nits
ClosedPublic

Authored by Fabien on Jun 26 2019, 07:07.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Branch
fix_generate_header
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6489
Build 11025: Bitcoin ABC Buildbot (legacy)
Build 11024: arc lint + arc unit