Page MenuHomePhabricator

[python linting] enforce E712: Comparison to true should be 'if cond is true:' or 'if cond:'
ClosedPublic

Authored by markblundeberg on Fri, Feb 7, 15:14.

Details

Summary

Note that with the RPC results it's worth checking they are exactly
as expected using is operator, but usually we just want to do a
boolean cast.

Depends on D5199

Test Plan

ninja check-all
arc lint --everything

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.