HomePhabricator

[CMAKE] Migrate the python header generation scripts to python 3

Description

[CMAKE] Migrate the python header generation scripts to python 3

Summary:
The shebang has already been updated, but the scripts would fail with
python3. The read() function now returns a byte array when the file is
opened in binary mode, so the ord() is no longer needed.

The CMakeLists.txt files are updated to use the correct interpreter.

Test Plan:

ninja check
ninja bitcoin-bench

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
FabienAuthored on Sep 24 2019, 08:57
FabienPushed on Sep 24 2019, 15:19
Reviewer
Restricted Project
Differential Revision
D4143: [CMAKE] Migrate the python header generation scripts to python 3
Parents
rABC71191d04adaa: [CMAKE] Only change obj/build.h if the content has changed
Branches
Unknown
Tags
Unknown