HomePhabricator

Update various scripts to use the new .format() method

Description

Update various scripts to use the new .format() method

Summary: Avoid using % to format strings, switch to the new method instead.

Test Plan:

./test/functional/test_runner.py wallet_listsinceblock

./test/util/bitcoin-util-test.py

cd share
./qt/extract_strings_qt.py ../src/qt/splashscreen.cpp

Check that a file named qt/bitcoinstrings.cpp is outputted and its
content is correct.

./src/bitcoind -testnet -zmqpubrawtx=tcp://127.0.0.1:28332
-zmqpubrawblock=tcp://127.0.0.1:28332
-zmqpubhashtx=tcp://127.0.0.1:28332
-zmqpubhashblock=tcp://127.0.0.1:28332 &
./contrib/zmq/zmq_sub27.py

Should display a lot of data. Press CTRL+C when you get bored.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: teamcity, schancel

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

Details

Provenance
FabienAuthored on Feb 19 2019, 10:24
jasonbcoxPushed on Feb 19 2019, 23:53
Reviewer
Restricted Project
Differential Revision
D2577: Update various scripts to use the new .format() method
Parents
rSTAGING335aac574fb3: Update contrib/devtools scripts to use the new .format() method
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/7416