HomePhabricator

Make check-doc.py compliant to python3

Description

Make check-doc.py compliant to python3

Summary:
check_output returns bytes but the regex is using a string.
The decode() method will convert from bytes to string.

Depends on D2305

Test Plan:

python2 ./test/lint/check-doc.py
python3 ./test/lint/check-doc.py

Check the outputs are the same

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: teamcity, schancel

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

Details

Provenance
FabienAuthored on Jan 14 2019, 12:21
FabienPushed on Jan 22 2019, 17:10
Reviewer
Restricted Project
Differential Revision
D2306: Make check-doc.py compliant to python3
Parents
rABC7e1b44bdb84d: Move check-doc.py from contrib/devtools to test/lint
Branches
Unknown
Tags
Unknown