diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-07-08 15:47:23 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-07-12 13:06:55 +0200 |
commit | c064c4950d2be040f0c13c5e8db1e0457f844204 (patch) | |
tree | 5f4ff638431fd9c88020b130a54465fee4206710 /components/script/dom/bindings/codegen | |
parent | 4c31c8ac7b6205967b90e6bc30d473abaa1726d7 (diff) | |
download | servo-c064c4950d2be040f0c13c5e8db1e0457f844204.tar.gz servo-c064c4950d2be040f0c13c5e8db1e0457f844204.zip |
Make sure that Descriptor.isGlobal() returns a bool.
Diffstat (limited to 'components/script/dom/bindings/codegen')
-rw-r--r-- | components/script/dom/bindings/codegen/Configuration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/codegen/Configuration.py b/components/script/dom/bindings/codegen/Configuration.py index 7aad0f75f75..805bcb1a758 100644 --- a/components/script/dom/bindings/codegen/Configuration.py +++ b/components/script/dom/bindings/codegen/Configuration.py @@ -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 |