Make sure that Descriptor.isGlobal() returns a bool.

This commit is contained in:
Ms2ger 2016-07-08 15:47:23 +02:00
parent 4c31c8ac7b
commit c064c4950d

View file

@ -367,8 +367,8 @@ class Descriptor(DescriptorProvider):
Returns true if this is the primary interface for a global object
of some sort.
"""
return (self.interface.getExtendedAttribute("Global") or
self.interface.getExtendedAttribute("PrimaryGlobal"))
return bool(self.interface.getExtendedAttribute("Global") or
self.interface.getExtendedAttribute("PrimaryGlobal"))
# Some utility methods