Page MenuHomePhabricator

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

Authored by markblundeberg on Feb 7 2020, 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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Feb 7 2020, 15:29