HomePhabricator

[lint] Fix variables shadowing python builtins in rpc_generateblock.py

Description

[lint] Fix variables shadowing python builtins in rpc_generateblock.py

Summary: Shadowing builtins can lead to unexpected behavior. Continuing work from D13740

Test Plan:

./test/functional/test_runner.py rpc_generateblock
flake8 rpc_generateblock.py | grep A001  # empty

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
sdulfariAuthored on Apr 19 2023, 17:58
sdulfariPushed on Apr 19 2023, 20:17
Reviewer
Restricted Project
Differential Revision
D13741: [lint] Fix variables shadowing python builtins in rpc_generateblock.py
Parents
rABCb608021456ee: [lint] Require flake8-builtins to ensure we do not add shadowing of python…
Branches
Unknown
Tags
Unknown