Enable Comparison to None should use 'is' Error

Flake8 currently ignores comparison to None should be 'if cond is None'
Enable E711 for more thorough testing of code

Change-Id: I608cceff2eeb87c116bccddac26e3c869e5d57df
Story: 2004515
Task: 30076
Signed-off-by: Eric Barrett <eric.barrett@windriver.com>
This commit is contained in:
Eric Barrett 2019-03-21 10:00:18 -04:00
parent 1588bba5c1
commit 420ea3a7dc
1 changed files with 2 additions and 2 deletions

View File

@ -1510,7 +1510,7 @@ def get_info_and_display(show=None):
q = select([S.name,
S.region_name,
S.deleted_at]
).where(S.deleted_at == None)
).where(S.deleted_at is None)
result = conn.execute(q)
for row in result:
field = 'region_name'
@ -1527,7 +1527,7 @@ def get_info_and_display(show=None):
q = select([S.name,
S.region_name,
S.deleted_at]
).where(S.deleted_at == None)
).where(S.deleted_at is None)
result = conn.execute(q)
for row in result:
name = str(row['name'])