Target E711 - compare against None with 'is' not !=
This commit is contained in:
parent
d6628beadf
commit
dc62b2ed78
2
.flake8
2
.flake8
@ -1,4 +1,4 @@
|
||||
[flake8]
|
||||
exclude = abichecker
|
||||
max-line-length = 100
|
||||
ignore = W503,W504,E501,F401,E128,E251,E201,E202,E302,E305,F841,E261,E712,E126,E711
|
||||
ignore = W503,W504,E501,F401,E128,E251,E201,E202,E302,E305,F841,E261,E712,E126
|
||||
|
@ -214,7 +214,7 @@ class FreezeCommand(object):
|
||||
|
||||
# Ignore packages with an origing (i.e. with an origin
|
||||
# different from the current project)
|
||||
if si.find('originproject') != None:
|
||||
if si.find('originproject') is not None:
|
||||
return None
|
||||
|
||||
if package in ['rpmlint-mini-AGGR']:
|
||||
|
@ -49,7 +49,7 @@ class ListCommand:
|
||||
request_id, Fore.CYAN, target_package, Fore.RESET,
|
||||
ring_color, ring, Fore.RESET)
|
||||
|
||||
if not hide_source and action.find('source') != None:
|
||||
if not hide_source and action.find('source') is not None:
|
||||
source_project = action.find('source').get('project')
|
||||
source_project = self.project_strip(source_project)
|
||||
line += ' ({})'.format(Fore.YELLOW + source_project + Fore.RESET)
|
||||
|
@ -796,7 +796,7 @@ class StagingAPI(object):
|
||||
query = {}
|
||||
if package:
|
||||
query['package'] = package
|
||||
if limit != None and int(limit) > 0:
|
||||
if limit is not None and int(limit) > 0:
|
||||
query['limit'] = int(limit)
|
||||
u = makeurl(self.apiurl, ['build', project, repository, architecture, '_jobhistory'], query)
|
||||
return ET.parse(http_GET(u)).getroot()
|
||||
|
Loading…
x
Reference in New Issue
Block a user