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:
parent
5f2160cc96
commit
ca73168e75
6 changed files with 17 additions and 17 deletions
|
@ -232,7 +232,7 @@ def brcm_load_image(Cam, im_str):
|
|||
"""
|
||||
return error if problem reading file
|
||||
"""
|
||||
if f == None:
|
||||
if f is None:
|
||||
print('\nERROR:\nProblem reading file')
|
||||
Cam.log += '\nWARNING: Problem readin file'
|
||||
return 0
|
||||
|
@ -376,7 +376,7 @@ def load_image(Cam, im_str, mac_config=None, show=False, mac=True, show_meta=Fal
|
|||
"""
|
||||
if no macbeth found return error
|
||||
"""
|
||||
if macbeth == None:
|
||||
if macbeth is None:
|
||||
print('\nERROR: No macbeth chart found')
|
||||
return 0
|
||||
mac_cen_coords = macbeth[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue