utils: raspberrypi: ctt: Fix pycodestyle E711 and E712

E711 comparison to None should be 'if cond is None:'
E711 comparison to None should be 'if cond is not None:'
E712 comparison to False should be 'if cond is False:' or 'if not cond:'
E712 comparison to True should be 'if cond is True:' or 'if cond:'

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
This commit is contained in:
Laurent Pinchart 2020-05-02 03:32:00 +03:00
parent 5f2160cc96
commit ca73168e75
6 changed files with 17 additions and 17 deletions

View file

@ -258,7 +258,7 @@ def find_macbeth(Cam, img, mac_config=(0, 0)):
"""
extract data from coords_fit and plot on original image
"""
if show and coords_fit != None:
if show and coords_fit is not None:
copy = img.copy()
verts = coords_fit[0][0]
cents = coords_fit[1][0]