[gobject-introspection] [glibtransformer] not not x -> bool(x)



commit d5ae084c39721d9b9b417be11008b157c269e274
Author: Johan Dahlin <johan gnome org>
Date:   Sat Jun 12 15:53:59 2010 -0300

    [glibtransformer] not not x -> bool(x)

 giscanner/glibtransformer.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/glibtransformer.py b/giscanner/glibtransformer.py
index 324a444..b86a49d 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]