mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +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
|
Returns true if this is the primary interface for a global object
|
||||||
of some sort.
|
of some sort.
|
||||||
"""
|
"""
|
||||||
return (self.interface.getExtendedAttribute("Global") or
|
return bool(self.interface.getExtendedAttribute("Global") or
|
||||||
self.interface.getExtendedAttribute("PrimaryGlobal"))
|
self.interface.getExtendedAttribute("PrimaryGlobal"))
|
||||||
|
|
||||||
|
|
||||||
# Some utility methods
|
# Some utility methods
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue