diff --git a/tools/spec.py b/tools/spec.py index ffcda1a..82a6d0f 100644 --- a/tools/spec.py +++ b/tools/spec.py @@ -326,7 +326,7 @@ class POD(Type): n = member.find('name').text comment = member.find('comment') - if not comment is None: + if comment is not None: member.remove(comment) code = " ".join(member.itertext()) @@ -498,7 +498,7 @@ class Require(object): required.append(name) continue - if not 'extends' in value.attrib: + if 'extends' not in value.attrib: obj = Constant(value) owner = reg.types['API Constants'] owner.values.append(obj)