summaryrefslogtreecommitdiff
path: root/giscanner/glibtransformer.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/glibtransformer.py')
-rw-r--r--giscanner/glibtransformer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/glibtransformer.py b/giscanner/glibtransformer.py
index 324a444f..b86a49d2 100644
--- a/giscanner/glibtransformer.py
+++ b/giscanner/glibtransformer.py
@@ -731,7 +731,7 @@ class GLibTransformer(object):
#
parent_type_names = xmlnode.attrib['parents'].split(',')
parent_gitype = self._resolve_gtypename_chain(parent_type_names)
- is_abstract = not not xmlnode.attrib.get('abstract', False)
+ is_abstract = bool(xmlnode.attrib.get('abstract', False))
node = GLibObject(
self._transformer.remove_prefix(type_name),
parent_gitype,