Bug 1155968 - Change '==' and '!=' to 'is' and 'is not' to comply with PEP8. r=khuey

This commit is contained in:
Boris Kudryavtsev 2015-05-14 19:50:00 +02:00
Родитель baaa8b054e
Коммит fa8c2b1b78
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -437,7 +437,7 @@ def write_interface(iface, fd):
fd.write(iface_forward % names)
def emitTemplate(forward_infallible, tmpl, tmpl_notxpcom=None):
if tmpl_notxpcom == None:
if tmpl_notxpcom is None:
tmpl_notxpcom = tmpl
for member in iface.members:
if isinstance(member, xpidl.Attribute):

Просмотреть файл

@ -62,9 +62,9 @@ def build_interface(iface, ifaces):
type = type.realtype
if isinstance(type, xpidl.Builtin):
if type.name == 'string' and size_is != None:
if type.name == 'string' and size_is is not None:
return xpt.StringWithSizeType(size_is, size_is)
elif type.name == 'wstring' and size_is != None:
elif type.name == 'wstring' and size_is is not None:
return xpt.WideStringWithSizeType(size_is, size_is)
else:
tag = TypeMap[type.name]
@ -100,7 +100,7 @@ def build_interface(iface, ifaces):
return xpt.SimpleType(TypeMap[type.specialtype],
pointer=isPtr,
reference=isRef)
elif iid_is != None:
elif iid_is is not None:
return xpt.InterfaceIsType(iid_is)
else:
# void ptr