HomePhabricator

remove redundant str conversions in f-strings (test_framework/util.py)

Description

remove redundant str conversions in f-strings (test_framework/util.py)

Summary:
Some of these became unecessary after D13199 (previously we sometimes used string concatenation with the + operator)
Some of these were never necessary (the ones that previously used "%s" % (str(thing), ) or "{}".format(str(thing)))

Also replace one instance of f"{repr(thing)}" with the f"{thing!r}" shortcut.

Test Plan: ninja check-functional-extended

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Mon, Dec 9, 10:47
PiRKPushed on Mon, Dec 9, 13:33
Reviewer
Restricted Project
Differential Revision
D17319: remove redundant str conversions in f-strings (test_framework/util.py)
Parents
rABCf699f5428392: Add NASM as a dependency for the windows build
Branches
Unknown
Tags
Unknown