mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Make sure that Descriptor.isGlobal() returns a bool.
This commit is contained in:
parent
4c31c8ac7b
commit
c064c4950d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue