tools/spec: use preferred 'not in' syntax for PEP8

This commit is contained in:
Danny Robson 2019-01-05 15:14:17 +11:00
parent 82b7bad661
commit 916bab6134

View File

@ -326,7 +326,7 @@ class POD(Type):
n = member.find('name').text n = member.find('name').text
comment = member.find('comment') comment = member.find('comment')
if not comment is None: if comment is not None:
member.remove(comment) member.remove(comment)
code = " ".join(member.itertext()) code = " ".join(member.itertext())
@ -498,7 +498,7 @@ class Require(object):
required.append(name) required.append(name)
continue continue
if not 'extends' in value.attrib: if 'extends' not in value.attrib:
obj = Constant(value) obj = Constant(value)
owner = reg.types['API Constants'] owner = reg.types['API Constants']
owner.values.append(obj) owner.values.append(obj)